mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 19:37:06 -05:00
Adds the speed test for CRC.
This commit is contained in:
parent
9324933be0
commit
28bdd0f7b7
3 changed files with 23 additions and 2 deletions
4
util.c
4
util.c
|
|
@ -1067,7 +1067,7 @@ static uint32_t CRC32C_3[256] = {
|
|||
*/
|
||||
#define CRC_IV 0xffffffffU
|
||||
|
||||
static uint32_t crc32c_gen(uint32_t crc, const unsigned char* ptr, unsigned size)
|
||||
uint32_t crc32c_gen(uint32_t crc, const unsigned char* ptr, unsigned size)
|
||||
{
|
||||
crc ^= CRC_IV;
|
||||
|
||||
|
|
@ -1091,7 +1091,7 @@ static uint32_t crc32c_gen(uint32_t crc, const unsigned char* ptr, unsigned size
|
|||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
static uint32_t crc32c_x86(uint32_t crc, const unsigned char* ptr, unsigned size)
|
||||
uint32_t crc32c_x86(uint32_t crc, const unsigned char* ptr, unsigned size)
|
||||
{
|
||||
crc ^= CRC_IV;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue