• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/openzfs/module/zstd/lib/

Lines Matching defs:huffWeight

2381  * `huffWeight` is destination buffer.
2384 size_t HUF_readStats(BYTE* huffWeight, size_t hwSize,
2627 `huffWeight` is destination buffer.
2632 size_t HUF_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats,
2643 /* memset(huffWeight, 0, hwSize); *//* is not necessary, even though some analyzer complain ... */
2653 huffWeight[n] = ip[n/2] >> 4;
2654 huffWeight[n+1] = ip[n/2] & 15;
2659 oSize = FSE_decompress_wksp(huffWeight, hwSize-1, ip+1, iSize, fseWorkspace, 6); /* max (hwSize-1) values decoded, as last one is implied */
2667 if (huffWeight[n] >= HUF_TABLELOG_MAX) return ERROR(corruption_detected);
2668 rankStats[huffWeight[n]]++;
2669 weightTotal += (1 << huffWeight[n]) >> 1;
2683 huffWeight[oSize] = (BYTE)lastWeight;
8482 BYTE huffWeight[HUF_SYMBOLVALUE_MAX];
8494 huffWeight[n] = bitsToWeight[CTable[n].nbBits];
8497 { CHECK_V_F(hSize, HUF_compressWeights(op+1, maxDstSize-1, huffWeight, maxSymbolValue) );
8507 huffWeight[maxSymbolValue] = 0; /* to be sure it doesn't cause msan issue in final combination */
8509 op[(n/2)+1] = (BYTE)((huffWeight[n] << 4) + huffWeight[n+1]);
8516 BYTE huffWeight[HUF_SYMBOLVALUE_MAX + 1]; /* init not required, even though some static analyzer may complain */
8522 CHECK_V_F(readSize, HUF_readStats(huffWeight, HUF_SYMBOLVALUE_MAX+1, rankVal, &nbSymbols, &tableLog, src, srcSize));
8539 const U32 w = huffWeight[n];
21476 BYTE* huffWeight;
21481 huffWeight = (BYTE *)((U32 *)workSpace + spaceUsed32);
21487 /* memset(huffWeight, 0, sizeof(huffWeight)); */ /* is not necessary, even though some analyzer complain ... */
21489 iSize = HUF_readStats(huffWeight, HUF_SYMBOLVALUE_MAX + 1, rankVal, &nbSymbols, &tableLog, src, srcSize);
21512 size_t const w = huffWeight[n];