Use multiple sum algorithm from zlib for Adler and Fletcher checksums.

This commit is contained in:
2021-09-22 23:49:32 +01:00
parent 186f57d7cb
commit bf1b026a7e
6 changed files with 409 additions and 38 deletions

View File

@@ -20,6 +20,8 @@
#define AARU_CHECKSUMS_NATIVE_FLETCHER32_H
#define FLETCHER32_MODULE 0xFFFF
/* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(ADLER_MODULE-1) <= 2^32-1 */
#define NMAX 5552
typedef struct
{