Lines Matching refs:Table
24 // Table is a 256-word table representing the polynomial for efficient processing.
25 type Table [256]uint64
32 // MakeTable returns a Table constructed from the specified polynomial.
33 // The contents of this Table must not be modified.
34 func MakeTable(poly uint64) *Table {
45 func makeTable(poly uint64) *Table {
46 t := new(Table)
61 func makeSlicingBy8Table(t *Table) *[8]Table {
62 var helperTable [8]Table
77 tab *Table
81 // using the polynomial represented by the Table.
83 func New(tab *Table) hash.Hash64 { return &digest{0, tab} }
91 func update(crc uint64, tab *Table, p []byte) uint64 {
93 // Table comparison is somewhat expensive, so avoid it for small sizes
95 var helperTable *[8]Table
100 // For smaller sizes creating extended table takes too much time
129 func Update(crc uint64, tab *Table, p []byte) uint64 {
146 // using the polynomial represented by the Table.
147 func Checksum(data []byte, tab *Table) uint64 { return update(0, tab, data) }