mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 17:36:26 -05:00
Uses the CRC_IV directly in the crc32c() function.
This commit is contained in:
parent
5136eb3719
commit
9d00435b42
4 changed files with 21 additions and 13 deletions
6
util.h
6
util.h
|
|
@ -496,12 +496,6 @@ void randomize(void* ptr, unsigned size);
|
|||
/****************************************************************************/
|
||||
/* crc */
|
||||
|
||||
/**
|
||||
* CRC initial value.
|
||||
* Using a not zero value allows to detect trailing zeros at the end.
|
||||
*/
|
||||
#define CRC_IV 0xffffffffU
|
||||
|
||||
/**
|
||||
* Computes the CRC-32 (Castagnoli)
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue