Home | History | Annotate | Download | only in crc32

Lines Matching refs:Table

40 // Table is a 256-word table representing the polynomial for efficient processing.
41 type Table [256]uint32
71 // castagnoliTable points to a lazily initialized Table for the Castagnoli
73 // Castagnoli table so we can compare against it to find when the caller is
75 var castagnoliTable *Table
89 // Initialize the slicing-by-8 table.
97 // IEEETable is the table for the IEEE polynomial.
113 // Initialize the slicing-by-8 table.
121 // MakeTable returns a Table constructed from the specified polynomial.
122 // The contents of this Table must not be modified.
123 func MakeTable(poly uint32) *Table {
138 tab *Table
142 // using the polynomial represented by the Table.
144 func New(tab *Table) hash.Hash32 {
163 func Update(crc uint32, tab *Table, p []byte) uint32 {
199 // using the polynomial represented by the Table.
200 func Checksum(data []byte, tab *Table) uint32 { return Update(0, tab, data) }