increase table size
authorGeoffrey Allott <geoffrey@allott.email>
Sat, 20 Aug 2022 16:07:10 +0000 (17:07 +0100)
committerGeoffrey Allott <geoffrey@allott.email>
Sat, 20 Aug 2022 16:07:10 +0000 (17:07 +0100)
src/tANS.c

index 371e2aeb031cd6c7ba32daba69fb4cc94bf7e70f..3f0f99dc68688429a0b05ac080b7c567f9a28704 100644 (file)
@@ -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;