Lines Matching defs:Table
27 // Table is a 256-word table representing the polynomial for efficient processing.
28 type Table [256]uint64
35 // MakeTable returns a Table constructed from the specified polynomial.
36 // The contents of this Table must not be modified.
37 func MakeTable(poly uint64) *Table {
48 func makeTable(poly uint64) *Table {
49 t := new(Table)
64 func makeSlicingBy8Table(t *Table) *[8]Table {
65 var helperTable [8]Table
80 tab *Table
84 // polynomial represented by the Table. Its Sum method will lay the
88 func New(tab *Table) hash.Hash64 { return &digest{0, tab} }
143 func update(crc uint64, tab *Table, p []byte) uint64 {
145 // Table comparison is somewhat expensive, so avoid it for small sizes
147 var helperTable *[8]Table
152 // For smaller sizes creating extended table takes too much time
181 func Update(crc uint64, tab *Table, p []byte) uint64 {
198 // using the polynomial represented by the Table.
199 func Checksum(data []byte, tab *Table) uint64 { return update(0, tab, data) }
201 // tableSum returns the ISO checksum of table t.
202 func tableSum(t *Table) uint64 {