xref: /reactos/drivers/filesystems/btrfs/crc32c.h (revision 08d10098)
1 #pragma once
2 
3 #include <stdint.h>
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 
9 #if defined(_X86_) || defined(_AMD64_)
10 uint32_t __stdcall calc_crc32c_hw(uint32_t seed, uint8_t* msg, uint32_t msglen);
11 #endif
12 
13 uint32_t __stdcall calc_crc32c_sw(uint32_t seed, uint8_t* msg, uint32_t msglen);
14 
15 typedef uint32_t (__stdcall *crc_func)(uint32_t seed, uint8_t* msg, uint32_t msglen);
16 
17 extern crc_func calc_crc32c;
18 
19 #ifdef __cplusplus
20 }
21 #endif
22