From 38620675c3b269a278cf7a6c8dec3713f04334b9 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Tue, 23 Apr 2024 17:51:44 -0500 Subject: [PATCH] Fixed overallocation of crc32c small-table array Whoops. An unfortunate typo that went unnoticed. This should be a 64-byte (16-int) array, not a 64-int array. A free 192 byte savings! code stack before: 34076 2864 after: 33888 (-0.6%) 2864 (+0.0%) --- lfs_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lfs_util.c b/lfs_util.c index 3f7f9acd..15a22243 100644 --- a/lfs_util.c +++ b/lfs_util.c @@ -105,7 +105,7 @@ uint32_t lfs_crc32c(uint32_t crc, const void *buffer, size_t size) { } #elif !defined(LFS_FASTER_CRC32C) - static const uint32_t lfs_crc32c_table[64] = { + static const uint32_t lfs_crc32c_table[16] = { 0x00000000, 0x105ec76f, 0x20bd8ede, 0x30e349b1, 0x417b1dbc, 0x5125dad3, 0x61c69362, 0x7198540d, 0x82f63b78, 0x92a8fc17, 0xa24bb5a6, 0xb21572c9,