This function is called once to initialize the CRC table for use on a big-endian architecture. */
| 85 | /* This function is called once to initialize the CRC table for use on a |
| 86 | big-endian architecture. */ |
| 87 | void crcspeed64big_init(crcfn64 fn, uint64_t big_table[8][256]) { |
| 88 | /* Create the little endian table then reverse all the entries. */ |
| 89 | crcspeed64little_init(fn, big_table); |
| 90 | for (int k = 0; k < 8; k++) { |
| 91 | for (int n = 0; n < 256; n++) { |
| 92 | big_table[k][n] = rev8(big_table[k][n]); |
| 93 | } |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | void crcspeed16big_init(crcfn16 fn, uint16_t big_table[8][256]) { |
| 98 | /* Create the little endian table then reverse all the entries. */ |
no test coverage detected