mirror of
https://github.com/fumiama/blake2b-simd.git
synced 2026-06-20 02:40:41 +08:00
@@ -40,8 +40,11 @@ func compressAVX(d *digest, p []uint8) {
|
||||
}
|
||||
|
||||
func compress(d *digest, p []uint8) {
|
||||
// Verifies if AVX is available, use optimized code path.
|
||||
if avx {
|
||||
// Verifies if AVX2 or AVX is available, use optimized code path.
|
||||
if avx2 {
|
||||
compressAVX2(d, p)
|
||||
return
|
||||
} else if avx {
|
||||
compressAVX(d, p)
|
||||
return
|
||||
} // else { fallback to generic approach.
|
||||
|
||||
Reference in New Issue
Block a user