MCPcopy Create free account
hub / github.com/F-Stack/f-stack / crcspeed64native

Function crcspeed64native

app/redis-6.2.6/src/crcspeed.c:253–259  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

251 This selects one of two routines depending on the endianess of
252 the architecture. */
253uint64_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
261uint16_t crcspeed16native(uint16_t table[8][256], uint16_t crc, void *buf,
262 size_t len) {

Callers 1

crc64Function · 0.85

Calls 2

crcspeed64littleFunction · 0.85
crcspeed64bigFunction · 0.85

Tested by

no test coverage detected