mirror of
https://github.com/aaru-dps/Aaru.Checksums.Native.git
synced 2025-12-16 19:24:29 +00:00
Use multiple sum algorithm from zlib for Adler and Fletcher checksums.
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
#define AARU_CHECKSUMS_NATIVE_FLETCHER16_H
|
||||
|
||||
#define FLETCHER16_MODULE 0xFF
|
||||
/* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(ADLER_MODULE-1) <= 2^16-1 */
|
||||
#define NMAX 22
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user