9 lines
161 B
Go
9 lines
161 B
Go
|
// +build !amd64
|
||
|
|
||
|
package reedsolomon
|
||
|
|
||
|
func newRS(d, p int, em matrix) (enc Encoder) {
|
||
|
g := em[d*d:]
|
||
|
return &encBase{data: d, parity: p, encode: em, gen: g}
|
||
|
}
|