element/vendor/github.com/codahale/aesnicheck/asm_amd64.s
Evan Hazlett 15619b08f8
proxy: update vendor
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2017-07-29 22:50:48 -04:00

9 lines
128 B
ArmAsm

// func HasAESNI() bool
TEXT ·HasAESNI(SB),$0
XORQ AX, AX
INCL AX
CPUID
SHRQ $25, CX
ANDQ $1, CX
MOVB CX, ret+0(FP)
RET