41 lines
394 B
NASM
41 lines
394 B
NASM
format ms64 coff
|
|
|
|
section '.text' code readable executable align 16
|
|
|
|
use64
|
|
|
|
public _AVX
|
|
_AVX:
|
|
vbroadcastsd ymm0, xmm0 ; load @num into all slots
|
|
vsqrtpd ymm0, ymm0
|
|
vmovdqu [rdx], ymm0 ; store result in @res
|
|
ret
|
|
|
|
int3
|
|
int3
|
|
int3
|
|
int3
|
|
int3
|
|
int3
|
|
int3
|
|
int3
|
|
int3
|
|
int3
|
|
int3
|
|
|
|
public _RDRAND
|
|
_RDRAND:
|
|
rdrand eax
|
|
ret
|
|
|
|
int3
|
|
int3
|
|
int3
|
|
int3
|
|
int3
|
|
int3
|
|
int3
|
|
int3
|
|
int3
|
|
int3
|
|
int3 |