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

Function build_crc8_table

dpdk/app/test/test_atomic.c:354–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352volatile uint64_t token64;
353
354static void
355build_crc8_table(void)
356{
357 uint8_t val;
358 int i, j;
359
360 for (i = 0; i < 256; i++) {
361 val = i;
362 for (j = 0; j < 8; j++) {
363 if (val & 1)
364 val ^= CRC8_POLY;
365 val >>= 1;
366 }
367 crc8_table[i] = val;
368 }
369}
370
371static uint8_t
372get_crc8(uint8_t *message, int length)

Callers 1

test_atomicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected