mirror of
https://github.com/fumiama/blake2b-simd.git
synced 2026-06-05 02:00:26 +08:00
With this change, following happens.
```
if sse {
compressSSE()
return
}
compressGeneric()
```
compressGeneric is used as a fallback when SSE is not detected.
15 lines
365 B
ArmAsm
15 lines
365 B
ArmAsm
// Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.
|
|
|
|
// +build amd64,!gccgo
|
|
|
|
// func cpuid(op uint32) (eax, ebx, ecx, edx uint32)
|
|
TEXT ·cpuid(SB), 7, $0
|
|
XORQ CX, CX
|
|
MOVL op+0(FP), AX
|
|
CPUID
|
|
MOVL AX, eax+8(FP)
|
|
MOVL BX, ebx+12(FP)
|
|
MOVL CX, ecx+16(FP)
|
|
MOVL DX, edx+20(FP)
|
|
RET
|