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/crc16.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/lib/crc/crc16.c') diff --git a/src/lib/crc/crc16.c b/src/lib/crc/crc16.c index 55af8647..9dc59429 100644 --- a/src/lib/crc/crc16.c +++ b/src/lib/crc/crc16.c @@ -34,10 +34,7 @@ #include -/* Bit-by-bit MSB-first CRC. Header-check use case rarely exceeds a - * few hundred bytes; a 256-entry uint16_t table costs 512 B of - * .rodata and is easy to add later if profiling demands it. - */ +/* Bit-by-bit MSB-first CRC. */ void crc16_ccitt_false(uint16_t * crc, const void * buf, size_t len) -- cgit v1.2.3