Lines Matching refs:wksp
154 HUF_ReadDTableX1_Workspace* wksp = (HUF_ReadDTableX1_Workspace*)workSpace; in HUF_readDTableX1_wksp_bmi2() local
156 DEBUG_STATIC_ASSERT(HUF_DECOMPRESS_WORKSPACE_SIZE >= sizeof(*wksp)); in HUF_readDTableX1_wksp_bmi2()
157 if (sizeof(*wksp) > wkspSize) return ERROR(tableLog_tooLarge); in HUF_readDTableX1_wksp_bmi2()
162 …readStats_wksp(wksp->huffWeight, HUF_SYMBOLVALUE_MAX + 1, wksp->rankVal, &nbSymbols, &tableLog, sr… in HUF_readDTableX1_wksp_bmi2()
192 nextRankStart += wksp->rankVal[n]; in HUF_readDTableX1_wksp_bmi2()
193 wksp->rankStart[n] = curr; in HUF_readDTableX1_wksp_bmi2()
198 size_t const w = wksp->huffWeight[n+u]; in HUF_readDTableX1_wksp_bmi2()
199 wksp->symbols[wksp->rankStart[w]++] = (BYTE)(n+u); in HUF_readDTableX1_wksp_bmi2()
203 size_t const w = wksp->huffWeight[n]; in HUF_readDTableX1_wksp_bmi2()
204 wksp->symbols[wksp->rankStart[w]++] = (BYTE)n; in HUF_readDTableX1_wksp_bmi2()
216 int symbol=wksp->rankVal[0]; in HUF_readDTableX1_wksp_bmi2()
219 int const symbolCount = wksp->rankVal[w]; in HUF_readDTableX1_wksp_bmi2()
229 D.byte = wksp->symbols[symbol + s]; in HUF_readDTableX1_wksp_bmi2()
238 D.byte = wksp->symbols[symbol + s]; in HUF_readDTableX1_wksp_bmi2()
247 U64 const D4 = HUF_DEltX1_set4(wksp->symbols[symbol + s], nbBits); in HUF_readDTableX1_wksp_bmi2()
254 U64 const D4 = HUF_DEltX1_set4(wksp->symbols[symbol + s], nbBits); in HUF_readDTableX1_wksp_bmi2()
262 U64 const D4 = HUF_DEltX1_set4(wksp->symbols[symbol + s], nbBits); in HUF_readDTableX1_wksp_bmi2()
531 U32 nbBitsBaseline, U16 baseSeq, U32* wksp, size_t wkspSize) in HUF_fillDTableX2Level2() argument
534 U32* rankVal = wksp; in HUF_fillDTableX2Level2()
574 const U32 nbBitsBaseline, U32* wksp, size_t wkspSize) in HUF_fillDTableX2() argument
576 U32* rankVal = wksp; in HUF_fillDTableX2()
582 wksp += HUF_TABLELOG_MAX + 1; in HUF_fillDTableX2()
603 nbBitsBaseline, symbol, wksp, wkspSize); in HUF_fillDTableX2()
638 HUF_ReadDTableX2_Workspace* const wksp = (HUF_ReadDTableX2_Workspace*)workSpace; in HUF_readDTableX2_wksp() local
640 if (sizeof(*wksp) > wkspSize) return ERROR(GENERIC); in HUF_readDTableX2_wksp()
642 rankStart = wksp->rankStart0 + 1; in HUF_readDTableX2_wksp()
643 ZSTD_memset(wksp->rankStats, 0, sizeof(wksp->rankStats)); in HUF_readDTableX2_wksp()
644 ZSTD_memset(wksp->rankStart0, 0, sizeof(wksp->rankStart0)); in HUF_readDTableX2_wksp()
650 …adStats_wksp(wksp->weightList, HUF_SYMBOLVALUE_MAX + 1, wksp->rankStats, &nbSymbols, &tableLog, sr… in HUF_readDTableX2_wksp()
657 …for (maxW = tableLog; wksp->rankStats[maxW]==0; maxW--) {} /* necessarily finds a solution before… in HUF_readDTableX2_wksp()
663 nextRankStart += wksp->rankStats[w]; in HUF_readDTableX2_wksp()
673 U32 const w = wksp->weightList[s]; in HUF_readDTableX2_wksp()
675 wksp->sortedSymbol[r].symbol = (BYTE)s; in HUF_readDTableX2_wksp()
676 wksp->sortedSymbol[r].weight = (BYTE)w; in HUF_readDTableX2_wksp()
682 { U32* const rankVal0 = wksp->rankVal[0]; in HUF_readDTableX2_wksp()
688 nextRankVal += wksp->rankStats[w] << (w+rescale); in HUF_readDTableX2_wksp()
694 U32* const rankValPtr = wksp->rankVal[consumed]; in HUF_readDTableX2_wksp()
701 wksp->sortedSymbol, sizeOfSort, in HUF_readDTableX2_wksp()
702 wksp->rankStart0, wksp->rankVal, maxW, in HUF_readDTableX2_wksp()
704 wksp->calleeWksp, sizeof(wksp->calleeWksp) / sizeof(U32)); in HUF_readDTableX2_wksp()