diff options
| author | Nathan Moinvaziri <nathan@nathanm.com> | 2026-02-17 20:31:35 -0800 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2026-02-18 20:15:09 +0100 |
| commit | 2ab522d1ae4b021e5478c52e8379fa2b51d92e78 (patch) | |
| tree | d0979c4e3de48197a471f7917dc4cc56a5a110c1 | |
| parent | 5fe4b068ccd8f50fcf8469e2112144b6fb592bf8 (diff) | |
| download | Project-Tick-2ab522d1ae4b021e5478c52e8379fa2b51d92e78.tar.gz Project-Tick-2ab522d1ae4b021e5478c52e8379fa2b51d92e78.zip | |
Cleanup pointer style and parameter names in crc32 chorba functions
| -rw-r--r-- | arch/generic/crc32_chorba_c.c | 2 | ||||
| -rw-r--r-- | arch/x86/x86_functions.h | 2 | ||||
| -rw-r--r-- | crc32_chorba_p.h | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/arch/generic/crc32_chorba_c.c b/arch/generic/crc32_chorba_c.c index de0dc73061..693972da11 100644 --- a/arch/generic/crc32_chorba_c.c +++ b/arch/generic/crc32_chorba_c.c @@ -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_t* buf, 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)]; diff --git a/arch/x86/x86_functions.h b/arch/x86/x86_functions.h index d308edd2fa..f6ec9a137c 100644 --- a/arch/x86/x86_functions.h +++ b/arch/x86/x86_functions.h @@ -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 diff --git a/crc32_chorba_p.h b/crc32_chorba_p.h index 75928a3e58..95f92af913 100644 --- a/crc32_chorba_p.h +++ b/crc32_chorba_p.h @@ -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_ */ |
