From: Geoffrey Allott Date: Sat, 20 Aug 2022 16:07:10 +0000 (+0100) Subject: increase table size X-Git-Url: https://git.pointlesshacks.com/?a=commitdiff_plain;h=af0a9ef6526bad21b6882f28caee8362752222ea;p=tANS.git increase table size --- 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;