| 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. */ |
| 99 | crcspeed16little_init(fn, big_table); |
| 100 | for (int k = 0; k < 8; k++) { |
| 101 | for (int n = 0; n < 256; n++) { |
| 102 | big_table[k][n] = rev8(big_table[k][n]); |
| 103 | } |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | /* Calculate a non-inverted CRC multiple bytes at a time on a little-endian |
| 108 | * architecture. If you need inverted CRC, invert *before* calling and invert |
no test coverage detected