mirror of
https://github.com/pgsty/minio.git
synced 2026-08-10 16:23:28 +03:00
Vendor the upstream changes with Avx512 (#7225)
Thanks to @fwessels we have Avx512 support with 4x improvement
This commit is contained in:
committed by
Nitish Tiwari
parent
fef5416b3c
commit
118270d76f
+6
-6
@@ -40,12 +40,12 @@ func galMulSSSE3Xor(low, high, in, out []byte) {
|
||||
}
|
||||
*/
|
||||
|
||||
func galMulSlice(c byte, in, out []byte, ssse3, avx2 bool) {
|
||||
func galMulSlice(c byte, in, out []byte, o *options) {
|
||||
var done int
|
||||
if avx2 {
|
||||
if o.useAVX2 {
|
||||
galMulAVX2(mulTableLow[c][:], mulTableHigh[c][:], in, out)
|
||||
done = (len(in) >> 5) << 5
|
||||
} else if ssse3 {
|
||||
} else if o.useSSSE3 {
|
||||
galMulSSSE3(mulTableLow[c][:], mulTableHigh[c][:], in, out)
|
||||
done = (len(in) >> 4) << 4
|
||||
}
|
||||
@@ -58,12 +58,12 @@ func galMulSlice(c byte, in, out []byte, ssse3, avx2 bool) {
|
||||
}
|
||||
}
|
||||
|
||||
func galMulSliceXor(c byte, in, out []byte, ssse3, avx2 bool) {
|
||||
func galMulSliceXor(c byte, in, out []byte, o *options) {
|
||||
var done int
|
||||
if avx2 {
|
||||
if o.useAVX2 {
|
||||
galMulAVX2Xor(mulTableLow[c][:], mulTableHigh[c][:], in, out)
|
||||
done = (len(in) >> 5) << 5
|
||||
} else if ssse3 {
|
||||
} else if o.useSSSE3 {
|
||||
galMulSSSE3Xor(mulTableLow[c][:], mulTableHigh[c][:], in, out)
|
||||
done = (len(in) >> 4) << 4
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user