Add cross compilation (#127)

* Add cross compilation

Add 386 as 32 bit test, arm64 and ppc64le since they have assembly.
master
Klaus Post 2020-05-04 21:19:49 +02:00 committed by GitHub
parent f525ef0450
commit dccac354fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -27,6 +27,9 @@ script:
- go build examples/stream-decoder.go
- go build examples/stream-encoder.go
- diff <(gofmt -d .) <("")
- GOARCH=386 GOOS=linux go build .
- GOARCH=arm64 GOOS=linux go build .
- GOARCH=ppc64le GOOS=linux go build .
matrix:
allow_failures:

View File

@ -229,7 +229,7 @@ func (r reedSolomon) codeSomeShardsAvx512P(matrixRows, inputs, outputs [][]byte,
if do < r.o.minSplitSize {
do = r.o.minSplitSize
}
// Make sizes divisible by 32
// Make sizes divisible by 64
do = (do + 63) & (^63)
start := 0
for start < byteCount {