Lines Matching refs:U32

88 	U32 maxSymbolValue = HUF_TABLELOG_MAX;  in HUF_compressWeights_wksp()
89 U32 tableLog = MAX_FSE_TABLELOG_FOR_HUFF_HEADER; in HUF_compressWeights_wksp()
92 U32 *count; in HUF_compressWeights_wksp()
96 HUF_STATIC_ASSERT(sizeof(FSE_CTable) == sizeof(U32)); in HUF_compressWeights_wksp()
98 CTable = (FSE_CTable *)((U32 *)workspace + spaceUsed32); in HUF_compressWeights_wksp()
100 count = (U32 *)workspace + spaceUsed32; in HUF_compressWeights_wksp()
102 norm = (S16 *)((U32 *)workspace + spaceUsed32); in HUF_compressWeights_wksp()
103 spaceUsed32 += ALIGN(sizeof(S16) * (HUF_TABLELOG_MAX + 1), sizeof(U32)) >> 2; in HUF_compressWeights_wksp()
107 workspace = (U32 *)workspace + spaceUsed32; in HUF_compressWeights_wksp()
152 …Table_wksp(void *dst, size_t maxDstSize, const HUF_CElt *CTable, U32 maxSymbolValue, U32 huffLog, … in HUF_writeCTable_wksp()
155 U32 n; in HUF_writeCTable_wksp()
161 bitsToWeight = (BYTE *)((U32 *)workspace + spaceUsed32); in HUF_writeCTable_wksp()
162 spaceUsed32 += ALIGN(HUF_TABLELOG_MAX + 1, sizeof(U32)) >> 2; in HUF_writeCTable_wksp()
163 huffWeight = (BYTE *)((U32 *)workspace + spaceUsed32); in HUF_writeCTable_wksp()
164 spaceUsed32 += ALIGN(HUF_SYMBOLVALUE_MAX, sizeof(U32)) >> 2; in HUF_writeCTable_wksp()
168 workspace = (U32 *)workspace + spaceUsed32; in HUF_writeCTable_wksp()
203 size_t HUF_readCTable_wksp(HUF_CElt *CTable, U32 maxSymbolValue, const void *src, size_t srcSize, v… in HUF_readCTable_wksp()
205 U32 *rankVal; in HUF_readCTable_wksp()
207 U32 tableLog = 0; in HUF_readCTable_wksp()
208 U32 nbSymbols = 0; in HUF_readCTable_wksp()
212 rankVal = (U32 *)workspace + spaceUsed32; in HUF_readCTable_wksp()
214 huffWeight = (BYTE *)((U32 *)workspace + spaceUsed32); in HUF_readCTable_wksp()
215 spaceUsed32 += ALIGN(HUF_SYMBOLVALUE_MAX + 1, sizeof(U32)) >> 2; in HUF_readCTable_wksp()
219 workspace = (U32 *)workspace + spaceUsed32; in HUF_readCTable_wksp()
235 U32 n, nextRankStart = 0; in HUF_readCTable_wksp()
237 U32 curr = nextRankStart; in HUF_readCTable_wksp()
245 U32 n; in HUF_readCTable_wksp()
247 const U32 w = huffWeight[n]; in HUF_readCTable_wksp()
257 U32 n; in HUF_readCTable_wksp()
265 U32 n; in HUF_readCTable_wksp()
274 U32 n; in HUF_readCTable_wksp()
284 U32 count;
290 static U32 HUF_setMaxHeight(nodeElt *huffNode, U32 lastNonNull, U32 maxNbBits) in HUF_setMaxHeight()
292 const U32 largestBits = huffNode[lastNonNull].nbBits; in HUF_setMaxHeight()
299 const U32 baseCost = 1 << (largestBits - maxNbBits); in HUF_setMaxHeight()
300 U32 n = lastNonNull; in HUF_setMaxHeight()
315 U32 const noSymbol = 0xF0F0F0F0; in HUF_setMaxHeight()
316 U32 rankLast[HUF_TABLELOG_MAX + 2]; in HUF_setMaxHeight()
322 U32 currNbBits = maxNbBits; in HUF_setMaxHeight()
332 U32 nBitsToDecrease = BIT_highbit32(totalCost) + 1; in HUF_setMaxHeight()
334 U32 highPos = rankLast[nBitsToDecrease]; in HUF_setMaxHeight()
335 U32 lowPos = rankLast[nBitsToDecrease - 1]; in HUF_setMaxHeight()
341 U32 const highTotal = huffNode[highPos].count; in HUF_setMaxHeight()
342 U32 const lowTotal = 2 * huffNode[lowPos].count; in HUF_setMaxHeight()
385 U32 base;
386 U32 curr;
389 static void HUF_sort(nodeElt *huffNode, const U32 *count, U32 maxSymbolValue) in HUF_sort()
392 U32 n; in HUF_sort()
396 U32 r = BIT_highbit32(count[n] + 1); in HUF_sort()
404 U32 const c = count[n]; in HUF_sort()
405 U32 const r = BIT_highbit32(c + 1) + 1; in HUF_sort()
406 U32 pos = rank[r].curr++; in HUF_sort()
420 size_t HUF_buildCTable_wksp(HUF_CElt *tree, const U32 *count, U32 maxSymbolValue, U32 maxNbBits, vo… in HUF_buildCTable_wksp()
424 U32 n, nonNullRank; in HUF_buildCTable_wksp()
427 U32 nodeRoot; in HUF_buildCTable_wksp()
453 huffNode[n].count = (U32)(1U << 30); in HUF_buildCTable_wksp()
454 huffNode0[0].count = (U32)(1U << 31); /* fake entry, strong barrier */ in HUF_buildCTable_wksp()
458 U32 n1 = (huffNode[lowS].count < huffNode[lowN].count) ? lowS-- : lowN++; in HUF_buildCTable_wksp()
459 U32 n2 = (huffNode[lowS].count < huffNode[lowN].count) ? lowS-- : lowN++; in HUF_buildCTable_wksp()
521 static void HUF_encodeSymbol(BIT_CStream_t *bitCPtr, U32 symbol, const HUF_CElt *CTable) in HUF_encodeSymbol()
658 U32 *count; in HUF_compress_internal()
659 size_t const countSize = sizeof(U32) * (HUF_SYMBOLVALUE_MAX + 1); in HUF_compress_internal()
679 count = (U32 *)workSpace; in HUF_compress_internal()
693 …CHECK_V_F(largest, FSE_count_wksp(count, &maxSymbolValue, (const BYTE *)src, srcSize, (U32 *)workS… in HUF_compress_internal()
715 huffLog = (U32)maxBits; in HUF_compress_internal()