From b28ce48318ac9aaa1566b1813be6300f6b2c3314 Mon Sep 17 00:00:00 2001 From: Basil Hussain Date: Sat, 9 Dec 2023 19:49:55 +0000 Subject: [PATCH] Added LUT-based algorithm variant for CRC32 - LUT algorithm for CRC32 uses 16-entry half-byte/nibble table. - Reconfigured build process to produce 3 library variants: 'fastest' (LUT algorithm, or bitwise unrolled if LUT not implemented), 'faster' (bitwise unrolled), 'small' (bitwise looped). - Updated README. --- CRC.cbp | 95 +++++++++++++++++++++++++++++++++------------- LICENSE.txt | 2 +- README.md | 74 ++++++++++++++++++++++-------------- crc/crc16_ansi.c | 4 +- crc/crc16_ccitt.c | 4 +- crc/crc32.c | 79 +++++++++++++++++++++++++++++++++++++- crc/crc32_posix.c | 80 +++++++++++++++++++++++++++++++++++++- crc/crc8_1wire.c | 4 +- crc/crc8_autosar.c | 4 +- crc/crc8_j1850.c | 4 +- 10 files changed, 280 insertions(+), 70 deletions(-) diff --git a/CRC.cbp b/CRC.cbp index 987fd14..43c9757 100644 --- a/CRC.cbp +++ b/CRC.cbp @@ -25,34 +25,59 @@ - -