From af0a9ef6526bad21b6882f28caee8362752222ea Mon Sep 17 00:00:00 2001 From: Geoffrey Allott Date: Sat, 20 Aug 2022 17:07:10 +0100 Subject: [PATCH] increase table size --- src/tANS.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tANS.c b/src/tANS.c index 371e2ae..3f0f99d 100644 --- a/src/tANS.c +++ b/src/tANS.c @@ -31,7 +31,7 @@ static int tANS_compress_file(FILE* input, FILE *output) struct tANS_freq_tbl freq_tbl; struct tANS_symbol_tbl symbol_tbl; struct tANS_encode_st st; - const uint16_t log2_tblsz = 10; + const uint16_t log2_tblsz = 12; uint32_t read_sz = 8; while (!feof(input)) { @@ -65,7 +65,7 @@ static int tANS_decompress_file(FILE* input, FILE *output) struct tANS_freq_tbl freq_tbl; struct tANS_symbol_tbl symbol_tbl; struct tANS_decode_st st; - const uint16_t log2_tblsz = 10; + const uint16_t log2_tblsz = 12; while (!feof(input)) { if (tANS_freq_tbl_init(&freq_tbl, 256, p, log2_tblsz) != 0) return -1; -- 2.34.1