galois_noasm.go 384 B

12345678910111213141516171819
  1. //+build !amd64 noasm appengine
  2. // Copyright 2015, Klaus Post, see LICENSE for details.
  3. package reedsolomon
  4. func galMulSlice(c byte, in, out []byte, ssse3, avx2 bool) {
  5. mt := mulTable[c]
  6. for n, input := range in {
  7. out[n] = mt[input]
  8. }
  9. }
  10. func galMulSliceXor(c byte, in, out []byte, ssse3, avx2 bool) {
  11. mt := mulTable[c]
  12. for n, input := range in {
  13. out[n] ^= mt[input]
  14. }
  15. }