Lines Matching refs:U32

71     U32 const tableSize = 1 << tableLog;  in FSE_buildCTable_wksp()
72 U32 const tableMask = tableSize - 1; in FSE_buildCTable_wksp()
75 void* const FSCT = ((U32*)ptr) + 1 /* header */ + (tableLog ? tableSize>>1 : 1) ; in FSE_buildCTable_wksp()
77 U32 const step = FSE_TABLESTEP(tableSize); in FSE_buildCTable_wksp()
78 U32 const maxSV1 = maxSymbolValue+1; in FSE_buildCTable_wksp()
83 U32 highThreshold = tableSize-1; in FSE_buildCTable_wksp()
100 { U32 u; in FSE_buildCTable_wksp()
123 U32 s; in FSE_buildCTable_wksp()
154 U32 position = 0; in FSE_buildCTable_wksp()
155 U32 symbol; in FSE_buildCTable_wksp()
169 { U32 u; for (u=0; u<tableSize; u++) { in FSE_buildCTable_wksp()
194 { U32 const maxBitsOut = tableLog - BIT_highbit32 ((U32)normalizedCounter[s]-1); in FSE_buildCTable_wksp()
195 U32 const minStatePlus = (U32)normalizedCounter[s] << maxBitsOut; in FSE_buildCTable_wksp()
203 { U32 symbol; in FSE_buildCTable_wksp()
244 U32 bitStream = 0; in FSE_writeNCount_generic()
349 size = FSE_CTABLE_SIZE_U32 (tableLog, maxSymbolValue) * sizeof(U32); in FSE_createCTable()
358 U32 minBitsSrc = BIT_highbit32((U32)(srcSize)) + 1; in FSE_minTableLog()
359 U32 minBitsSymbols = BIT_highbit32(maxSymbolValue) + 2; in FSE_minTableLog()
360 U32 minBits = minBitsSrc < minBitsSymbols ? minBitsSrc : minBitsSymbols; in FSE_minTableLog()
367 U32 maxBitsSrc = BIT_highbit32((U32)(srcSize - 1)) - minus; in FSE_optimalTableLog_internal()
368 U32 tableLog = maxTableLog; in FSE_optimalTableLog_internal()
369 U32 minBits = FSE_minTableLog(srcSize, maxSymbolValue); in FSE_optimalTableLog_internal()
387 static size_t FSE_normalizeM2(short* norm, U32 tableLog, const unsigned* count, size_t total, U32 m… in FSE_normalizeM2()
390 U32 s; in FSE_normalizeM2()
391 U32 distributed = 0; in FSE_normalizeM2()
392 U32 ToDistribute; in FSE_normalizeM2()
395 U32 const lowThreshold = (U32)(total >> tableLog); in FSE_normalizeM2()
396 U32 lowOne = (U32)((total * 3) >> (tableLog + 1)); in FSE_normalizeM2()
425 lowOne = (U32)((total * 3) / (ToDistribute * 2)); in FSE_normalizeM2()
440 U32 maxV = 0, maxC = 0; in FSE_normalizeM2()
456 …U64 const rStep = ZSTD_div64((((U64)1<<vStepLog) * ToDistribute) + mid, (U32)total); /* scale on… in FSE_normalizeM2()
461 U32 const sStart = (U32)(tmpTotal >> vStepLog); in FSE_normalizeM2()
462 U32 const sEnd = (U32)(end >> vStepLog); in FSE_normalizeM2()
463 U32 const weight = sEnd - sStart; in FSE_normalizeM2()
483 …{ static U32 const rtbTable[] = { 0, 473195, 504333, 520860, 550000, 700000, 750000, 830000 … in FSE_normalizeCount()
486 U64 const step = ZSTD_div64((U64)1<<62, (U32)total); /* <== here, one division ! */ in FSE_normalizeCount()
492 U32 lowThreshold = (U32)(total >> tableLog); in FSE_normalizeCount()
520 U32 s; in FSE_normalizeCount()
521 U32 nTotal = 0; in FSE_normalizeCount()
544 …void* const FSCT = ((U32*)ptr) + 1 /* header */ + (tableSize>>1); /* assumption : tableLog >= 1 … in FSE_buildCTable_raw()
560 { const U32 deltaNbBits = (nbBits << 16) - (1 << nbBits); in FSE_buildCTable_raw()
574 void* FSCTptr = (U32*)ptr + 2; in FSE_buildCTable_rle()