]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Cleanup pointer style and parameter names in crc32 chorba functions
authorNathan Moinvaziri <nathan@nathanm.com>
Wed, 18 Feb 2026 04:31:35 +0000 (20:31 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 18 Feb 2026 19:15:09 +0000 (20:15 +0100)
arch/generic/crc32_chorba_c.c
arch/x86/x86_functions.h
crc32_chorba_p.h

index de0dc73061d2751030cc654625e16dc94aee09a8..693972da1182f56fe040191fe1cbb00b6b4abf32 100644 (file)
@@ -488,7 +488,7 @@ Z_INTERNAL uint32_t crc32_chorba_118960_nondestructive(uint32_t crc, const uint8
 
 #  if CHORBA_W == 8
 /* Implement Chorba algorithm from https://arxiv.org/abs/2412.16398 */
-Z_INTERNAL uint32_t crc32_chorba_32768_nondestructive(uint32_t crc, const uint8_tbuf, size_t len) {
+Z_INTERNAL uint32_t crc32_chorba_32768_nondestructive(uint32_t crc, const uint8_t *buf, size_t len) {
     /* The calling function ensured that this is aligned correctly */
     const uint64_t* input = (const uint64_t*)buf;
     uint64_t bitbuffer[32768 / sizeof(uint64_t)];
index d308edd2fa186e8569a474db13536635cff2faaf..f6ec9a137c9ab00d27e94ec5deaaab09735d1fb1 100644 (file)
@@ -25,7 +25,7 @@ void slide_hash_sse2(deflate_state *s);
 #  if !defined(WITHOUT_CHORBA_SSE)
     uint32_t crc32_chorba_sse2(uint32_t crc, const uint8_t *buf, size_t len);
     uint32_t crc32_copy_chorba_sse2(uint32_t crc, uint8_t *dst, const uint8_t *src, size_t len);
-    uint32_t chorba_small_nondestructive_sse2(uint32_t c, const uint8_t *aligned_buf, size_t aligned_len);
+    uint32_t chorba_small_nondestructive_sse2(uint32_t crc, const uint8_t *buf, size_t len);
 #  endif
 #endif
 
index 75928a3e58fdb0df53923b3fa849f515e62a7d6b..95f92af9131b1b0d97369378e5a6d701a1b87ed1 100644 (file)
@@ -26,9 +26,9 @@
     typedef uint32_t chorba_word_t;
 #endif
 
-Z_INTERNAL uint32_t crc32_chorba_118960_nondestructive (uint32_t crc, const uint8_t* input, size_t len);
-Z_INTERNAL uint32_t crc32_chorba_32768_nondestructive (uint32_t crc, const uint8_t* input, size_t len);
-Z_INTERNAL uint32_t crc32_chorba_small_nondestructive (uint32_t crc, const uint8_t* input, size_t len);
-Z_INTERNAL uint32_t crc32_chorba_small_nondestructive_32bit (uint32_t crc, const uint8_t* input, size_t len);
+Z_INTERNAL uint32_t crc32_chorba_118960_nondestructive(uint32_t crc, const uint8_t *buf, size_t len);
+Z_INTERNAL uint32_t crc32_chorba_32768_nondestructive(uint32_t crc, const uint8_t *buf, size_t len);
+Z_INTERNAL uint32_t crc32_chorba_small_nondestructive(uint32_t crc, const uint8_t *buf, size_t len);
+Z_INTERNAL uint32_t crc32_chorba_small_nondestructive_32bit(uint32_t crc, const uint8_t *buf, size_t len);
 
 #endif /* CRC32_CHORBA_P_H_ */