源文雨
c99573b3b2
adapt go1.17
2022-04-12 17:23:18 +08:00
Frank
d2af7cb658
Add support for SSE ( #10 )
2016-07-04 10:40:46 -07:00
Harshavardhana
cf4f8e0c34
Fix benchmarks to report proper values. ( #7 )
...
```
$ go test -run=NONE -bench .
PASS
BenchmarkHash64-4 1000000 1036 ns/op 61.77 MB/s
BenchmarkHash128-4 2000000 801 ns/op 159.67 MB/s
BenchmarkHash1K-4 500000 2464 ns/op 415.53 MB/s
BenchmarkHash8K-4 200000 11212 ns/op 730.60 MB/s
BenchmarkHash32K-4 30000 40766 ns/op 803.80 MB/s
BenchmarkHash128K-4 10000 163170 ns/op 803.28 MB/s
ok github.com/minio/blake2b-simd 10.298s
```
2016-07-03 21:58:02 +02:00
Frank
00562011ad
Added AVX2 support ( #6 )
...
* Added AVX2 support
2016-07-03 11:54:51 -07:00
frankw
f41b7a312a
asm: Add new defines
...
- Add UNDIAGONALIZE define
- Add DIAGONALIZE define
- Add G1 define
- Add G2 define
- Add LOAD_SHUFFLE define
Additionally check for AVX support.
2016-06-28 09:28:38 -07:00
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