Lines Matching refs:U32
73 U32 const tableSize = 1 << tableLog; in FSE_buildCTable_wksp()
74 U32 const tableMask = tableSize - 1; in FSE_buildCTable_wksp()
77 void* const FSCT = ((U32*)ptr) + 1 /* header */ + (tableLog ? tableSize>>1 : 1) ; in FSE_buildCTable_wksp()
79 U32 const step = FSE_TABLESTEP(tableSize); in FSE_buildCTable_wksp()
80 U32 const maxSV1 = maxSymbolValue+1; in FSE_buildCTable_wksp()
85 U32 highThreshold = tableSize-1; in FSE_buildCTable_wksp()
102 { U32 u; in FSE_buildCTable_wksp()
125 U32 s; in FSE_buildCTable_wksp()
156 U32 position = 0; in FSE_buildCTable_wksp()
157 U32 symbol; in FSE_buildCTable_wksp()
171 { U32 u; for (u=0; u<tableSize; u++) { in FSE_buildCTable_wksp()
196 { U32 const maxBitsOut = tableLog - ZSTD_highbit32 ((U32)normalizedCounter[s]-1); in FSE_buildCTable_wksp()
197 U32 const minStatePlus = (U32)normalizedCounter[s] << maxBitsOut; in FSE_buildCTable_wksp()
205 { U32 symbol; in FSE_buildCTable_wksp()
246 U32 bitStream = 0; in FSE_writeNCount_generic()
298 bitStream += (U32)count << bitCount; in FSE_writeNCount_generic()
351 U32 minBitsSrc = ZSTD_highbit32((U32)(srcSize)) + 1; in FSE_minTableLog()
352 U32 minBitsSymbols = ZSTD_highbit32(maxSymbolValue) + 2; in FSE_minTableLog()
353 U32 minBits = minBitsSrc < minBitsSymbols ? minBitsSrc : minBitsSymbols; in FSE_minTableLog()
360 U32 maxBitsSrc = ZSTD_highbit32((U32)(srcSize - 1)) - minus; in FSE_optimalTableLog_internal()
361 U32 tableLog = maxTableLog; in FSE_optimalTableLog_internal()
362 U32 minBits = FSE_minTableLog(srcSize, maxSymbolValue); in FSE_optimalTableLog_internal()
380 static size_t FSE_normalizeM2(short* norm, U32 tableLog, const unsigned* count, size_t total, U32 m… in FSE_normalizeM2()
383 U32 s; in FSE_normalizeM2()
384 U32 distributed = 0; in FSE_normalizeM2()
385 U32 ToDistribute; in FSE_normalizeM2()
388 U32 const lowThreshold = (U32)(total >> tableLog); in FSE_normalizeM2()
389 U32 lowOne = (U32)((total * 3) >> (tableLog + 1)); in FSE_normalizeM2()
418 lowOne = (U32)((total * 3) / (ToDistribute * 2)); in FSE_normalizeM2()
433 U32 maxV = 0, maxC = 0; in FSE_normalizeM2()
449 …U64 const rStep = ZSTD_div64((((U64)1<<vStepLog) * ToDistribute) + mid, (U32)total); /* scale on… in FSE_normalizeM2()
454 U32 const sStart = (U32)(tmpTotal >> vStepLog); in FSE_normalizeM2()
455 U32 const sEnd = (U32)(end >> vStepLog); in FSE_normalizeM2()
456 U32 const weight = sEnd - sStart; in FSE_normalizeM2()
476 …{ static U32 const rtbTable[] = { 0, 473195, 504333, 520860, 550000, 700000, 750000, 830000 … in FSE_normalizeCount()
479 U64 const step = ZSTD_div64((U64)1<<62, (U32)total); /* <== here, one division ! */ in FSE_normalizeCount()
485 U32 lowThreshold = (U32)(total >> tableLog); in FSE_normalizeCount()
513 U32 s; in FSE_normalizeCount()
514 U32 nTotal = 0; in FSE_normalizeCount()
533 void* FSCTptr = (U32*)ptr + 2; in FSE_buildCTable_rle()