Vendor the upstream changes with Avx512 (#7225)

Thanks to @fwessels we have Avx512 support with 4x improvement
This commit is contained in:
Harshavardhana
2019-02-12 04:02:27 -08:00
committed by Nitish Tiwari
parent fef5416b3c
commit 118270d76f
10 changed files with 847 additions and 32 deletions
+5 -2
View File
@@ -13,7 +13,7 @@ func galMulNEON(c uint64, in, out []byte)
//go:noescape
func galMulXorNEON(c uint64, 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
galMulNEON(uint64(c), in, out)
done = (len(in) >> 5) << 5
@@ -27,7 +27,7 @@ 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
galMulXorNEON(uint64(c), in, out)
done = (len(in) >> 5) << 5
@@ -47,3 +47,6 @@ func sliceXor(in, out []byte, sse2 bool) {
out[n] ^= input
}
}
func (r reedSolomon) codeSomeShardsAvx512(matrixRows, inputs, outputs [][]byte, outputCount, byteCount int) {
}