vlib: fix clib_crc32c on odd lengths and clib_crc32c_u8 85/38485/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 14 Mar 2023 14:38:01 +0000 (14:38 +0000)
committerDamjan Marion <dmarion@0xa5.net>
Tue, 14 Mar 2023 19:58:04 +0000 (19:58 +0000)
Fix the typo in the intrinsic name, which caused incorrect intrinsic to be used.

Type: fix
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Change-Id: Ib7fde14d12897e4d1bfb5a01f6d65025473e4f8e

src/vppinfra/crc32.h

index 2b20fef..f881937 100644 (file)
@@ -52,7 +52,7 @@ clib_crc32c_u64 (u32 last, u64 data)
 static_always_inline u32
 clib_crc32c_u8 (u32 last, u8 data)
 {
-  return __crc32cd (last, data);
+  return __crc32cb (last, data);
 }
 
 static_always_inline u32