EHS/src/HRNG_GCC.asm

169 lines
3.4 KiB
NASM
Raw Normal View History

2023-12-18 02:13:20 -08:00
global _ZN3ehs4HRNG16GenerateSeed_u64Ev
global _ZN3ehs4HRNG12Generate_u64Emm
global _ZN3ehs4HRNG12Generate_u64Ev
global _ZN3ehs4HRNG16GenerateSeed_s64Ev
global _ZN3ehs4HRNG12Generate_s64Ell
global _ZN3ehs4HRNG12Generate_s64Ev
global _ZN3ehs4HRNG16GenerateSeed_u32Ev
global _ZN3ehs4HRNG12Generate_u32Ejj
global _ZN3ehs4HRNG12Generate_u32Ev
global _ZN3ehs4HRNG16GenerateSeed_s32Ev
global _ZN3ehs4HRNG12Generate_s32Eii
global _ZN3ehs4HRNG12Generate_s32Ev
global _ZN3ehs4HRNG16GenerateSeed_u16Ev
global _ZN3ehs4HRNG12Generate_u16Ett
global _ZN3ehs4HRNG12Generate_u16Ev
global _ZN3ehs4HRNG16GenerateSeed_s16Ev
global _ZN3ehs4HRNG12Generate_s16Ess
global _ZN3ehs4HRNG12Generate_s16Ev
global _ZN3ehs4HRNG15GenerateSeed_u8Ev
global _ZN3ehs4HRNG11Generate_u8Ehh
global _ZN3ehs4HRNG11Generate_u8Ev
global _ZN3ehs4HRNG15GenerateSeed_s8Ev
global _ZN3ehs4HRNG11Generate_s8Eaa
global _ZN3ehs4HRNG11Generate_s8Ev
2023-12-17 03:29:08 -08:00
section .text
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG16GenerateSeed_u64Ev:
2023-12-17 03:29:08 -08:00
RDSEED RAX
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG12Generate_u64Emm:
2023-12-17 03:29:08 -08:00
RDRAND RAX
SUB RSI, RDI
MOV R8, RSI
XOR RDX, RDX
DIV R8
MOV RAX, RDX
ADD RAX, RDI
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG12Generate_u64Ev:
2023-12-17 03:29:08 -08:00
RDRAND RAX
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG16GenerateSeed_s64Ev:
2023-12-17 03:29:08 -08:00
RDSEED RAX
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG12Generate_s64Ell:
2023-12-17 03:29:08 -08:00
RDRAND RAX
SUB RSI, RDI
MOV R8, RSI
XOR RDX, RDX
DIV R8
MOV RAX, RDX
ADD RAX, RDI
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG12Generate_s64Ev:
2023-12-17 03:29:08 -08:00
RDRAND RAX
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG16GenerateSeed_u32Ev:
2023-12-17 03:29:08 -08:00
RDSEED EAX
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG12Generate_u32Ejj:
2023-12-17 03:29:08 -08:00
RDRAND EAX
SUB ESI, EDI
MOV R8D, ESI
XOR EDX, EDX
DIV R8D
MOV EAX, EDX
ADD EAX, EDI
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG12Generate_u32Ev:
2023-12-17 03:29:08 -08:00
RDRAND EAX
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG16GenerateSeed_s32Ev:
2023-12-17 03:29:08 -08:00
RDSEED EAX
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG12Generate_s32Eii:
2023-12-17 03:29:08 -08:00
RDRAND EAX
SUB ESI, EDI
MOV R8D, ESI
XOR EDX, EDX
DIV R8D
MOV EAX, EDX
ADD EAX, EDI
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG12Generate_s32Ev:
2023-12-17 03:29:08 -08:00
RDRAND EAX
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG16GenerateSeed_u16Ev:
2023-12-17 03:29:08 -08:00
RDSEED AX
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG12Generate_u16Ett:
2023-12-17 03:29:08 -08:00
RDRAND AX
SUB SI, DI
MOV R8W, SI
XOR DX, DX
DIV R8W
MOV AX, DX
ADD AX, DI
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG12Generate_u16Ev:
2023-12-17 03:29:08 -08:00
RDRAND AX
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG16GenerateSeed_s16Ev:
2023-12-17 03:29:08 -08:00
RDSEED AX
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG12Generate_s16Ess:
2023-12-17 03:29:08 -08:00
RDRAND AX
SUB SI, DI
MOV R8W, SI
XOR DX, DX
DIV R8W
MOV AX, DX
ADD AX, DI
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG12Generate_s16Ev:
2023-12-17 03:29:08 -08:00
RDRAND AX
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG15GenerateSeed_u8Ev:
2023-12-17 03:29:08 -08:00
RDSEED AX
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG11Generate_u8Ehh:
2023-12-17 03:29:08 -08:00
RDRAND AX
XOR AH, AH
SUB SIL, DIL
MOV R8B, SIL
DIV R8B
MOV AL, AH
ADD AL, DIL
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG11Generate_u8Ev:
2023-12-17 03:29:08 -08:00
RDRAND AX
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG15GenerateSeed_s8Ev:
2023-12-17 03:29:08 -08:00
RDSEED AX
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG11Generate_s8Eaa:
2023-12-17 03:29:08 -08:00
RDRAND AX
XOR AH, AH
SUB SIL, DIL
MOV R8B, SIL
DIV R8B
MOV AL, AH
ADD AL, DIL
RET
2023-12-18 02:13:20 -08:00
_ZN3ehs4HRNG11Generate_s8Ev:
2023-12-17 03:29:08 -08:00
RDRAND AX
RET