/freebsd-12-stable/sys/contrib/zstd/lib/common/ |
H A D | entropy_common.c | 155 `huffWeight` is destination buffer. 160 size_t HUF_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats, argument 171 /* memset(huffWeight, 0, hwSize); *//* is not necessary, even though some analyzer complain ... */ 181 huffWeight[n] = ip[n/2] >> 4; 182 huffWeight[n+1] = ip[n/2] & 15; 187 oSize = FSE_decompress_wksp(huffWeight, hwSize-1, ip+1, iSize, fseWorkspace, 6); /* max (hwSize-1) values decoded, as last one is implied */ 195 if (huffWeight[n] >= HUF_TABLELOG_MAX) return ERROR(corruption_detected); 196 rankStats[huffWeight[n]]++; 197 weightTotal += (1 << huffWeight[n]) >> 1; 211 huffWeight[oSiz [all...] |
H A D | huf.h | 234 * `huffWeight` is destination buffer. 237 size_t HUF_readStats(BYTE* huffWeight, size_t hwSize,
|
/freebsd-12-stable/sys/contrib/zstd/lib/compress/ |
H A D | huf_compress.c | 139 BYTE huffWeight[HUF_SYMBOLVALUE_MAX]; local 151 huffWeight[n] = bitsToWeight[CTable[n].nbBits]; 154 { CHECK_V_F(hSize, HUF_compressWeights(op+1, maxDstSize-1, huffWeight, maxSymbolValue) ); 164 huffWeight[maxSymbolValue] = 0; /* to be sure it doesn't cause msan issue in final combination */ 166 op[(n/2)+1] = (BYTE)((huffWeight[n] << 4) + huffWeight[n+1]); 173 BYTE huffWeight[HUF_SYMBOLVALUE_MAX + 1]; /* init not required, even though some static analyzer may complain */ local 179 CHECK_V_F(readSize, HUF_readStats(huffWeight, HUF_SYMBOLVALUE_MAX+1, rankVal, &nbSymbols, &tableLog, src, srcSize)); 195 const U32 w = huffWeight[n];
|
/freebsd-12-stable/sys/contrib/zstd/lib/legacy/ |
H A D | zstd_v01.c | 957 BYTE huffWeight[HUF_MAX_SYMBOL_VALUE + 1]; local 973 //memset(huffWeight, 0, sizeof(huffWeight)); /* should not be necessary, but some analyzer complain ... */ 980 memset(huffWeight, 1, sizeof(huffWeight)); 991 huffWeight[n] = ip[n/2] >> 4; 992 huffWeight[n+1] = ip[n/2] & 15; 999 oSize = FSE_decompress(huffWeight, HUF_MAX_SYMBOL_VALUE, ip+1, iSize); /* max 255 values decoded, last one is implied */ 1008 if (huffWeight[n] >= HUF_ABSOLUTEMAX_TABLELOG) return (size_t)-FSE_ERROR_corruptionDetected; 1009 rankVal[huffWeight[ [all...] |
H A D | zstd_v03.c | 1525 @huffWeight : destination buffer 1528 static size_t HUF_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats, argument 1541 //memset(huffWeight, 0, hwSize); /* is not necessary, even though some analyzer complain ... */ 1549 memset(huffWeight, 1, hwSize); 1561 huffWeight[n] = ip[n/2] >> 4; 1562 huffWeight[n+1] = ip[n/2] & 15; 1569 oSize = FSE_decompress(huffWeight, hwSize-1, ip+1, iSize); /* max (hwSize-1) values decoded, as last one is implied */ 1578 if (huffWeight[n] >= HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); 1579 rankStats[huffWeight[n]]++; 1580 weightTotal += (1 << huffWeight[ 1613 BYTE huffWeight[HUF_MAX_SYMBOL_VALUE + 1]; local [all...] |
H A D | zstd_v07.c | 1103 `huffWeight` is destination buffer. 1106 size_t HUFv07_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats, 1302 `huffWeight` is destination buffer. 1306 size_t HUFv07_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats, argument 1317 //memset(huffWeight, 0, hwSize); /* is not necessary, even though some analyzer complain ... */ 1323 memset(huffWeight, 1, hwSize); 1334 huffWeight[n] = ip[n/2] >> 4; 1335 huffWeight[n+1] = ip[n/2] & 15; 1339 oSize = FSEv07_decompress(huffWeight, hwSize-1, ip+1, iSize); /* max (hwSize-1) values decoded, as last one is implied */ 1347 if (huffWeight[ 1778 BYTE huffWeight[HUFv07_SYMBOLVALUE_MAX + 1]; local [all...] |
H A D | zstd_v02.c | 1528 @huffWeight : destination buffer 1531 static size_t HUF_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats, argument 1544 //memset(huffWeight, 0, hwSize); /* is not necessary, even though some analyzer complain ... */ 1552 memset(huffWeight, 1, hwSize); 1564 huffWeight[n] = ip[n/2] >> 4; 1565 huffWeight[n+1] = ip[n/2] & 15; 1572 oSize = FSE_decompress(huffWeight, hwSize-1, ip+1, iSize); /* max (hwSize-1) values decoded, as last one is implied */ 1581 if (huffWeight[n] >= HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); 1582 rankStats[huffWeight[n]]++; 1583 weightTotal += (1 << huffWeight[ 1616 BYTE huffWeight[HUF_MAX_SYMBOL_VALUE + 1]; local [all...] |
H A D | zstd_v04.c | 1740 @huffWeight : destination buffer 1743 static size_t HUF_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats, argument 1756 //memset(huffWeight, 0, hwSize); /* is not necessary, even though some analyzer complain ... */ 1764 memset(huffWeight, 1, hwSize); 1776 huffWeight[n] = ip[n/2] >> 4; 1777 huffWeight[n+1] = ip[n/2] & 15; 1784 oSize = FSE_decompress(huffWeight, hwSize-1, ip+1, iSize); /* max (hwSize-1) values decoded, as last one is implied */ 1793 if (huffWeight[n] >= HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); 1794 rankStats[huffWeight[n]]++; 1795 weightTotal += (1 << huffWeight[ 1828 BYTE huffWeight[HUF_MAX_SYMBOL_VALUE + 1]; local [all...] |
H A D | zstd_v05.c | 1788 @huffWeight : destination buffer 1791 static size_t HUFv05_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats, argument 1804 //memset(huffWeight, 0, hwSize); /* is not necessary, even though some analyzer complain ... */ 1810 memset(huffWeight, 1, hwSize); 1820 huffWeight[n] = ip[n/2] >> 4; 1821 huffWeight[n+1] = ip[n/2] & 15; 1825 oSize = FSEv05_decompress(huffWeight, hwSize-1, ip+1, iSize); /* max (hwSize-1) values decoded, as last one is implied */ 1833 if (huffWeight[n] >= HUFv05_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); 1834 rankStats[huffWeight[n]]++; 1835 weightTotal += (1 << huffWeight[ 1868 BYTE huffWeight[HUFv05_MAX_SYMBOL_VALUE + 1]; local [all...] |
H A D | zstd_v06.c | 1851 `huffWeight` is destination buffer. 1854 MEM_STATIC size_t HUFv06_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats, argument 1865 //memset(huffWeight, 0, hwSize); /* is not necessary, even though some analyzer complain ... */ 1871 memset(huffWeight, 1, hwSize); 1882 huffWeight[n] = ip[n/2] >> 4; 1883 huffWeight[n+1] = ip[n/2] & 15; 1887 oSize = FSEv06_decompress(huffWeight, hwSize-1, ip+1, iSize); /* max (hwSize-1) values decoded, as last one is implied */ 1895 if (huffWeight[n] >= HUFv06_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); 1896 rankStats[huffWeight[n]]++; 1897 weightTotal += (1 << huffWeight[ 2006 BYTE huffWeight[HUFv06_MAX_SYMBOL_VALUE + 1]; local [all...] |
/freebsd-12-stable/sys/contrib/zstd/lib/decompress/ |
H A D | huf_decompress.c | 89 BYTE* huffWeight; local 94 huffWeight = (BYTE *)((U32 *)workSpace + spaceUsed32); 100 /* memset(huffWeight, 0, sizeof(huffWeight)); */ /* is not necessary, even though some analyzer complain ... */ 102 iSize = HUF_readStats(huffWeight, HUF_SYMBOLVALUE_MAX + 1, rankVal, &nbSymbols, &tableLog, src, srcSize); 124 U32 const w = huffWeight[n];
|