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_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
{