From 146ba945e23c2266d5e31035135b5d158d1256e8 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Wed, 29 Apr 2026 22:23:09 +0200 Subject: lib: Fix and clean up crc implementation Fixes detection of PMULL on aarch64 without crypto extensions. Adds a crc64_nvme_step helper function in CRC64 to avoid code duplication and cleans up the comments. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/lib/crc/crc8.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/lib/crc/crc8.c') diff --git a/src/lib/crc/crc8.c b/src/lib/crc/crc8.c index e8b9685a..20976b29 100644 --- a/src/lib/crc/crc8.c +++ b/src/lib/crc/crc8.c @@ -34,10 +34,8 @@ #include -/* Bit-by-bit MSB-first CRC. The expected use case is header check - * sequences of a handful of bytes; a 256-byte lookup table would not - * pay for the extra .rodata footprint at typical input sizes. - */ + + /* Bit-by-bit MSB-first CRC. */ void crc8_autosar(uint8_t * crc, const void * buf, size_t len) -- cgit v1.2.3