1
0
mirror of https://github.com/fumiama/blake2b-simd.git synced 2026-06-06 02:30:28 +08:00
Files
blake2b-simd/compress_noasm.go
Harshavardhana 3a46db1cb4 Detect SSE automatically and enable corresponding optimized code path.
With this change, following happens.

```
if sse {
   compressSSE()
   return
}
compressGeneric()
```

compressGeneric is used as a fallback when SSE is not detected.
2016-06-28 02:51:14 -07:00

15 lines
428 B
Go

//+build !amd64 noasm appengine
// Written in 2012 by Dmitry Chestnykh.
//
// To the extent possible under law, the author have dedicated all copyright
// and related and neighboring rights to this software to the public domain
// worldwide. This software is distributed without any warranty.
// http://creativecommons.org/publicdomain/zero/1.0/
package blake2b
func compress(d *digest, p []uint8) {
compressGeneric(d, p)
}