Lines Matching defs:Table
41 // Table is a 256-word table representing the polynomial for efficient processing.
42 type Table [256]uint32
72 // castagnoliTable points to a lazily initialized Table for the Castagnoli
74 // Castagnoli table so we can compare against it to find when the caller is
76 var castagnoliTable *Table
90 // Initialize the slicing-by-8 table.
98 // IEEETable is the table for the IEEE polynomial.
114 // Initialize the slicing-by-8 table.
122 // MakeTable returns a Table constructed from the specified polynomial.
123 // The contents of this Table must not be modified.
124 func MakeTable(poly uint32) *Table {
139 tab *Table
143 // polynomial represented by the Table. Its Sum method will lay the
147 func New(tab *Table) hash.Hash32 {
210 func Update(crc uint32, tab *Table, p []byte) uint32 {
246 // using the polynomial represented by the Table.
247 func Checksum(data []byte, tab *Table) uint32 { return Update(0, tab, data) }
256 // tableSum returns the IEEE checksum of table t.
257 func tableSum(t *Table) uint32 {