Searched refs:HUF_TABLELOG_MAX (Results 1 – 8 of 8) sorted by relevance
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | huf_compress.c | 69 unsigned maxSymbolValue = HUF_TABLELOG_MAX; in HUF_compressWeights() 72 FSE_CTable CTable[FSE_CTABLE_SIZE_U32(MAX_FSE_TABLELOG_FOR_HUFF_HEADER, HUF_TABLELOG_MAX)]; in HUF_compressWeights() 75 unsigned count[HUF_TABLELOG_MAX+1]; in HUF_compressWeights() 76 S16 norm[HUF_TABLELOG_MAX+1]; in HUF_compressWeights() 117 BYTE bitsToWeight[HUF_TABLELOG_MAX + 1]; /* precomputed conversion table */ in HUF_writeCTable() 161 if (tableLog > HUF_TABLELOG_MAX) return ERROR(tableLog_tooLarge); in HUF_readCTable() 181 { U16 nbPerRank[HUF_TABLELOG_MAX+2] = {0}; /* support w=0=>n=tableLog+1 */ in HUF_readCTable() 182 U16 valPerRank[HUF_TABLELOG_MAX+2] = {0}; in HUF_readCTable() 237 U32 rankLast[HUF_TABLELOG_MAX+2]; in HUF_setMaxHeight() 262 … while ((nBitsToDecrease<=HUF_TABLELOG_MAX) && (rankLast[nBitsToDecrease] == noSymbol)) in HUF_setMaxHeight() [all …]
|
/freebsd/sys/contrib/zstd/lib/compress/ |
H A D | huf_compress.c | 86 FSE_CTable CTable[FSE_CTABLE_SIZE_U32(MAX_FSE_TABLELOG_FOR_HUFF_HEADER, HUF_TABLELOG_MAX)]; 87 …U32 scratchBuffer[FSE_BUILD_CTABLE_WORKSPACE_SIZE_U32(HUF_TABLELOG_MAX, MAX_FSE_TABLELOG_FOR_HUFF_… 88 unsigned count[HUF_TABLELOG_MAX+1]; 89 S16 norm[HUF_TABLELOG_MAX+1]; 98 unsigned maxSymbolValue = HUF_TABLELOG_MAX; in HUF_compressWeights() 168 BYTE bitsToWeight[HUF_TABLELOG_MAX + 1]; /* precomputed conversion table */ 234 if (tableLog > HUF_TABLELOG_MAX) return ERROR(tableLog_tooLarge); in HUF_readCTable() 254 { U16 nbPerRank[HUF_TABLELOG_MAX+2] = {0}; /* support w=0=>n=tableLog+1 */ in HUF_readCTable() 255 U16 valPerRank[HUF_TABLELOG_MAX+2] = {0}; in HUF_readCTable() 341 U32 rankLast[HUF_TABLELOG_MAX+2]; in HUF_setMaxHeight() [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/ |
H A D | entropy_common.c | 187 memset(rankStats, 0, (HUF_TABLELOG_MAX + 1) * sizeof(U32)); in HUF_readStats() 190 if (huffWeight[n] >= HUF_TABLELOG_MAX) return ERROR(corruption_detected); in HUF_readStats() 198 if (tableLog > HUF_TABLELOG_MAX) return ERROR(corruption_detected); in HUF_readStats()
|
H A D | huf.h | 117 #define HUF_TABLELOG_MAX 12 /* max runtime value of tableLog (due to static allocation); … macro 122 #if (HUF_TABLELOG_MAX > HUF_TABLELOG_ABSOLUTEMAX)
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/ |
H A D | huf_decompress.c | 207 if (MEM_64bits() || (HUF_TABLELOG_MAX<=12)) \ 402 HUF_CREATE_STATIC_DTABLEX1(DTable, HUF_TABLELOG_MAX); in HUF_decompress1X1() 447 HUF_CREATE_STATIC_DTABLEX1(DTable, HUF_TABLELOG_MAX); in HUF_decompress4X1() 462 typedef U32 rankValCol_t[HUF_TABLELOG_MAX + 1]; 463 typedef rankValCol_t rankVal_t[HUF_TABLELOG_MAX]; 474 U32 rankVal[HUF_TABLELOG_MAX + 1]; in HUF_fillDTableX2Level2() 514 U32 rankVal[HUF_TABLELOG_MAX + 1]; in HUF_fillDTableX2() 571 spaceUsed32 += (sizeof(rankValCol_t) * HUF_TABLELOG_MAX) >> 2; in HUF_readDTableX2_wksp() 573 spaceUsed32 += HUF_TABLELOG_MAX + 1; in HUF_readDTableX2_wksp() 575 spaceUsed32 += HUF_TABLELOG_MAX + 2; in HUF_readDTableX2_wksp() [all …]
|
/freebsd/sys/contrib/zstd/lib/common/ |
H A D | entropy_common.c | 305 ZSTD_memset(rankStats, 0, (HUF_TABLELOG_MAX + 1) * sizeof(U32)); in HUF_readStats_body() 308 if (huffWeight[n] > HUF_TABLELOG_MAX) return ERROR(corruption_detected); in HUF_readStats_body() 316 if (tableLog > HUF_TABLELOG_MAX) return ERROR(corruption_detected); in HUF_readStats_body()
|
H A D | huf.h | 119 #define HUF_TABLELOG_MAX 12 /* max runtime value of tableLog (due to static allocation); … macro 124 #if (HUF_TABLELOG_MAX > HUF_TABLELOG_ABSOLUTEMAX) 238 #define HUF_READ_STATS_WORKSPACE_SIZE_U32 FSE_DECOMPRESS_WKSP_SIZE_U32(6, HUF_TABLELOG_MAX-1)
|
/freebsd/sys/contrib/zstd/lib/decompress/ |
H A D | huf_decompress.c | 493 if (MEM_64bits() || (HUF_TABLELOG_MAX<=12)) \ 821 typedef U32 rankValCol_t[HUF_TABLELOG_MAX + 1]; 822 typedef rankValCol_t rankVal_t[HUF_TABLELOG_MAX]; 1037 rankValCol_t rankVal[HUF_TABLELOG_MAX]; 1038 U32 rankStats[HUF_TABLELOG_MAX + 1]; 1039 U32 rankStart0[HUF_TABLELOG_MAX + 3]; 1073 if (maxTableLog > HUF_TABLELOG_MAX) return ERROR(tableLog_tooLarge); in HUF_readDTableX2_wksp_bmi2() 1169 if (MEM_64bits() || (HUF_TABLELOG_MAX<=12)) \ 1764 HUF_CREATE_STATIC_DTABLEX1(DTable, HUF_TABLELOG_MAX); in HUF_decompress1X1() 1787 HUF_CREATE_STATIC_DTABLEX2(DTable, HUF_TABLELOG_MAX); in HUF_decompress1X2() [all …]
|