// slicing8Table is array of 8 Tables
type slicing8Table [8]Table
-// iEEETable8 is the slicing8Table for IEEE
-var iEEETable8 *slicing8Table
-var iEEETable8Once sync.Once
+// ieeeTable8 is the slicing8Table for IEEE
+var ieeeTable8 *slicing8Table
+var ieeeTable8Once sync.Once
// MakeTable returns a Table constructed from the specified polynomial.
// The contents of this Table must not be modified.
// only use slicing-by-8 when input is >= 4KB
if len(p) >= 4096 {
- iEEETable8Once.Do(func() {
- iEEETable8 = makeTable8(IEEE)
+ ieeeTable8Once.Do(func() {
+ ieeeTable8 = makeTable8(IEEE)
})
- return updateSlicingBy8(crc, iEEETable8, p)
+ return updateSlicingBy8(crc, ieeeTable8, p)
}
return update(crc, IEEETable, p)
func updateIEEE(crc uint32, p []byte) uint32 {
// only use slicing-by-8 when input is >= 4KB
if len(p) >= 4096 {
- iEEETable8Once.Do(func() {
- iEEETable8 = makeTable8(IEEE)
+ ieeeTable8Once.Do(func() {
+ ieeeTable8 = makeTable8(IEEE)
})
- return updateSlicingBy8(crc, iEEETable8, p)
+ return updateSlicingBy8(crc, ieeeTable8, p)
}
return update(crc, IEEETable, p)
func updateIEEE(crc uint32, p []byte) uint32 {
// only use slicing-by-8 when input is >= 4KB
if len(p) >= 4096 {
- iEEETable8Once.Do(func() {
- iEEETable8 = makeTable8(IEEE)
+ ieeeTable8Once.Do(func() {
+ ieeeTable8 = makeTable8(IEEE)
})
- return updateSlicingBy8(crc, iEEETable8, p)
+ return updateSlicingBy8(crc, ieeeTable8, p)
}
return update(crc, IEEETable, p)
}