XROAD
xroad_crc32c.h
Go to the documentation of this file.
1 #pragma once
7 #include <stdint.h>
8 
9 #ifdef __cplusplus
10 extern "C"
11 {
12 #endif
16 uint32_t xroad_crc32c(uint32_t crc, const void *buf, uint64_t len);
17 
21 uint32_t xroad_crc32c_sw(uint32_t crc, const void *buf, uint64_t len);
22 #ifdef __cplusplus
23 }
24 #endif
uint32_t xroad_crc32c_sw(uint32_t crc, const void *buf, uint64_t len)
calculates crc32c slow implementation
uint32_t xroad_crc32c(uint32_t crc, const void *buf, uint64_t len)
calculates crc32c Intel implementation