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

Function crcspeed64big_init

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

This function is called once to initialize the CRC table for use on a big-endian architecture. */

Source from the content-addressed store, hash-verified

85/* This function is called once to initialize the CRC table for use on a
86 big-endian architecture. */
87void 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
97void crcspeed16big_init(crcfn16 fn, uint16_t big_table[8][256]) {
98 /* Create the little endian table then reverse all the entries. */

Callers 1

crcspeed64native_initFunction · 0.85

Calls 2

crcspeed64little_initFunction · 0.85
rev8Function · 0.85

Tested by

no test coverage detected