Return the CRC of buf[0..len-1] with initial crc, processing eight bytes at a time using passed-in lookup table. This selects one of two routines depending on the endianess of the architecture. */
| 251 | This selects one of two routines depending on the endianess of |
| 252 | the architecture. */ |
| 253 | uint64_t crcspeed64native(uint64_t table[8][256], uint64_t crc, void *buf, |
| 254 | size_t len) { |
| 255 | uint64_t n = 1; |
| 256 | |
| 257 | return *(char *)&n ? crcspeed64little(table, crc, buf, len) |
| 258 | : crcspeed64big(table, crc, buf, len); |
| 259 | } |
| 260 | |
| 261 | uint16_t crcspeed16native(uint16_t table[8][256], uint16_t crc, void *buf, |
| 262 | size_t len) { |
no test coverage detected