/freebsd-current/sys/contrib/zstd/lib/common/ |
H A D | entropy_common.c | 257 `huffWeight` is destination buffer. 262 size_t HUF_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats, argument 267 return HUF_readStats_wksp(huffWeight, hwSize, rankStats, nbSymbolsPtr, tableLogPtr, src, srcSize, wksp, sizeof(wksp), /* bmi2 */ 0); 271 HUF_readStats_body(BYTE* huffWeight, size_t hwSize, U32* rankStats, argument 284 /* ZSTD_memset(huffWeight, 0, hwSize); *//* is not necessary, even though some analyzer complain ... */ 294 huffWeight[n] = ip[n/2] >> 4; 295 huffWeight[n+1] = ip[n/2] & 15; 300 oSize = FSE_decompress_wksp_bmi2(huffWeight, hwSize-1, ip+1, iSize, 6, workSpace, wkspSize, bmi2); 308 if (huffWeight[n] > HUF_TABLELOG_MAX) return ERROR(corruption_detected); 309 rankStats[huffWeight[ 337 HUF_readStats_body_default(BYTE* huffWeight, size_t hwSize, U32* rankStats, U32* nbSymbolsPtr, U32* tableLogPtr, const void* src, size_t srcSize, void* workSpace, size_t wkspSize) argument 346 HUF_readStats_body_bmi2(BYTE* huffWeight, size_t hwSize, U32* rankStats, U32* nbSymbolsPtr, U32* tableLogPtr, const void* src, size_t srcSize, void* workSpace, size_t wkspSize) argument 355 HUF_readStats_wksp(BYTE* huffWeight, size_t hwSize, U32* rankStats, U32* nbSymbolsPtr, U32* tableLogPtr, const void* src, size_t srcSize, void* workSpace, size_t wkspSize, int bmi2) argument [all...] |
H A D | huf.h | 226 * `huffWeight` is destination buffer. 229 size_t HUF_readStats(BYTE* huffWeight, size_t hwSize, 240 size_t HUF_readStats_wksp(BYTE* huffWeight, size_t hwSize,
|
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/common/ |
H A D | entropy_common.c | 150 `huffWeight` is destination buffer. 155 size_t HUF_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats, argument 166 /* memset(huffWeight, 0, hwSize); *//* is not necessary, even though some analyzer complain ... */ 176 huffWeight[n] = ip[n/2] >> 4; 177 huffWeight[n+1] = ip[n/2] & 15; 182 oSize = FSE_decompress_wksp(huffWeight, hwSize-1, ip+1, iSize, fseWorkspace, 6); /* max (hwSize-1) values decoded, as last one is implied */ 190 if (huffWeight[n] >= HUF_TABLELOG_MAX) return ERROR(corruption_detected); 191 rankStats[huffWeight[n]]++; 192 weightTotal += (1 << huffWeight[n]) >> 1; 206 huffWeight[oSiz [all...] |
H A D | huf.h | 222 * `huffWeight` is destination buffer. 225 size_t HUF_readStats(BYTE* huffWeight, size_t hwSize,
|
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | huf_compress.c | 118 BYTE huffWeight[HUF_SYMBOLVALUE_MAX]; local 130 huffWeight[n] = bitsToWeight[CTable[n].nbBits]; 133 { CHECK_V_F(hSize, HUF_compressWeights(op+1, maxDstSize-1, huffWeight, maxSymbolValue) ); 143 huffWeight[maxSymbolValue] = 0; /* to be sure it doesn't cause msan issue in final combination */ 145 op[(n/2)+1] = (BYTE)((huffWeight[n] << 4) + huffWeight[n+1]); 152 BYTE huffWeight[HUF_SYMBOLVALUE_MAX + 1]; /* init not required, even though some static analyzer may complain */ local 158 CHECK_V_F(readSize, HUF_readStats(huffWeight, HUF_SYMBOLVALUE_MAX+1, rankVal, &nbSymbols, &tableLog, src, srcSize)); 175 const U32 w = huffWeight[n];
|
/freebsd-current/sys/contrib/zstd/lib/compress/ |
H A D | huf_compress.c | 169 BYTE huffWeight[HUF_SYMBOLVALUE_MAX]; member in struct:__anon64 190 wksp->huffWeight[n] = wksp->bitsToWeight[HUF_getNbBits(ct[n])]; 194 { CHECK_V_F(hSize, HUF_compressWeights(op+1, maxDstSize-1, wksp->huffWeight, maxSymbolValue, &wksp->wksp, sizeof(wksp->wksp)) ); 204 wksp->huffWeight[maxSymbolValue] = 0; /* to be sure it doesn't cause msan issue in final combination */ 206 op[(n/2)+1] = (BYTE)((wksp->huffWeight[n] << 4) + wksp->huffWeight[n+1]); 223 BYTE huffWeight[HUF_SYMBOLVALUE_MAX + 1]; /* init not required, even though some static analyzer may complain */ local 230 CHECK_V_F(readSize, HUF_readStats(huffWeight, HUF_SYMBOLVALUE_MAX+1, rankVal, &nbSymbols, &tableLog, src, srcSize)); 249 const U32 w = huffWeight[n];
|
/freebsd-current/sys/contrib/zstd/lib/legacy/ |
H A D | zstd_v01.c | 959 BYTE huffWeight[HUF_MAX_SYMBOL_VALUE + 1]; local 975 //memset(huffWeight, 0, sizeof(huffWeight)); /* should not be necessary, but some analyzer complain ... */ 982 memset(huffWeight, 1, sizeof(huffWeight)); 993 huffWeight[n] = ip[n/2] >> 4; 994 huffWeight[n+1] = ip[n/2] & 15; 1001 oSize = FSE_decompress(huffWeight, HUF_MAX_SYMBOL_VALUE, ip+1, iSize); /* max 255 values decoded, last one is implied */ 1010 if (huffWeight[n] >= HUF_ABSOLUTEMAX_TABLELOG) return (size_t)-FSE_ERROR_corruptionDetected; 1011 rankVal[huffWeight[ [all...] |
H A D | zstd_v03.c | 1536 @huffWeight : destination buffer 1539 static size_t HUF_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats, argument 1552 //memset(huffWeight, 0, hwSize); /* is not necessary, even though some analyzer complain ... */ 1560 memset(huffWeight, 1, hwSize); 1572 huffWeight[n] = ip[n/2] >> 4; 1573 huffWeight[n+1] = ip[n/2] & 15; 1580 oSize = FSE_decompress(huffWeight, hwSize-1, ip+1, iSize); /* max (hwSize-1) values decoded, as last one is implied */ 1589 if (huffWeight[n] >= HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); 1590 rankStats[huffWeight[n]]++; 1591 weightTotal += (1 << huffWeight[ 1624 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_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...] |
H A D | zstd_v05.c | 1791 @huffWeight : destination buffer 1794 static size_t HUFv05_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats, argument 1807 /* memset(huffWeight, 0, hwSize); */ /* is not necessary, even though some analyzer complain ... */ 1813 memset(huffWeight, 1, hwSize); 1823 huffWeight[n] = ip[n/2] >> 4; 1824 huffWeight[n+1] = ip[n/2] & 15; 1828 oSize = FSEv05_decompress(huffWeight, hwSize-1, ip+1, iSize); /* max (hwSize-1) values decoded, as last one is implied */ 1836 if (huffWeight[n] >= HUFv05_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); 1837 rankStats[huffWeight[n]]++; 1838 weightTotal += (1 << huffWeight[ 1871 BYTE huffWeight[HUFv05_MAX_SYMBOL_VALUE + 1]; local [all...] |
H A D | zstd_v04.c | 1689 @huffWeight : destination buffer 1692 static size_t HUF_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats, argument 1705 //memset(huffWeight, 0, hwSize); /* is not necessary, even though some analyzer complain ... */ 1713 memset(huffWeight, 1, hwSize); 1725 huffWeight[n] = ip[n/2] >> 4; 1726 huffWeight[n+1] = ip[n/2] & 15; 1733 oSize = FSE_decompress(huffWeight, hwSize-1, ip+1, iSize); /* max (hwSize-1) values decoded, as last one is implied */ 1742 if (huffWeight[n] >= HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); 1743 rankStats[huffWeight[n]]++; 1744 weightTotal += (1 << huffWeight[ 1777 BYTE huffWeight[HUF_MAX_SYMBOL_VALUE + 1]; local [all...] |
H A D | zstd_v02.c | 1539 @huffWeight : destination buffer 1542 static size_t HUF_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats, argument 1555 //memset(huffWeight, 0, hwSize); /* is not necessary, even though some analyzer complain ... */ 1563 memset(huffWeight, 1, hwSize); 1575 huffWeight[n] = ip[n/2] >> 4; 1576 huffWeight[n+1] = ip[n/2] & 15; 1583 oSize = FSE_decompress(huffWeight, hwSize-1, ip+1, iSize); /* max (hwSize-1) values decoded, as last one is implied */ 1592 if (huffWeight[n] >= HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); 1593 rankStats[huffWeight[n]]++; 1594 weightTotal += (1 << huffWeight[ 1627 BYTE huffWeight[HUF_MAX_SYMBOL_VALUE + 1]; local [all...] |
/freebsd-current/sys/contrib/zstd/lib/decompress/ |
H A D | huf_decompress.c | 303 static U32 HUF_rescaleStats(BYTE* huffWeight, U32* rankVal, U32 nbSymbols, U32 tableLog, U32 targetTableLog) argument 312 huffWeight[s] += (BYTE)((huffWeight[s] == 0) ? 0 : scale); 333 BYTE huffWeight[HUF_SYMBOLVALUE_MAX + 1]; member in struct:__anon126 355 /* ZSTD_memset(huffWeight, 0, sizeof(huffWeight)); */ /* is not necessary, even though some analyzer complain ... */ 357 iSize = HUF_readStats_wksp(wksp->huffWeight, HUF_SYMBOLVALUE_MAX + 1, wksp->rankVal, &nbSymbols, &tableLog, src, srcSize, wksp->statsWksp, sizeof(wksp->statsWksp), bmi2); 365 tableLog = HUF_rescaleStats(wksp->huffWeight, wksp->rankVal, nbSymbols, tableLog, targetTableLog); 397 size_t const w = wksp->huffWeight[n+u]; 402 size_t const w = wksp->huffWeight[ [all...] |
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/decompress/ |
H A D | huf_decompress.c | 127 BYTE* huffWeight; local 132 huffWeight = (BYTE *)((U32 *)workSpace + spaceUsed32); 138 /* memset(huffWeight, 0, sizeof(huffWeight)); */ /* is not necessary, even though some analyzer complain ... */ 140 iSize = HUF_readStats(huffWeight, HUF_SYMBOLVALUE_MAX + 1, rankVal, &nbSymbols, &tableLog, src, srcSize); 163 size_t const w = huffWeight[n];
|