Lines Matching refs:U32
94 U32 const tableSize = 1 << tableLog; in FSE_buildCTable_wksp()
95 U32 const tableMask = tableSize - 1; in FSE_buildCTable_wksp()
98 void *const FSCT = ((U32 *)ptr) + 1 /* header */ + (tableLog ? tableSize >> 1 : 1); in FSE_buildCTable_wksp()
100 U32 const step = FSE_TABLESTEP(tableSize); in FSE_buildCTable_wksp()
101 U32 highThreshold = tableSize - 1; in FSE_buildCTable_wksp()
103 U32 *cumul; in FSE_buildCTable_wksp()
107 cumul = (U32 *)workspace + spaceUsed32; in FSE_buildCTable_wksp()
109 tableSymbol = (FSE_FUNCTION_TYPE *)((U32 *)workspace + spaceUsed32); in FSE_buildCTable_wksp()
110 spaceUsed32 += ALIGN(sizeof(FSE_FUNCTION_TYPE) * ((size_t)1 << tableLog), sizeof(U32)) >> 2; in FSE_buildCTable_wksp()
114 workspace = (U32 *)workspace + spaceUsed32; in FSE_buildCTable_wksp()
126 U32 u; in FSE_buildCTable_wksp()
141 U32 position = 0; in FSE_buildCTable_wksp()
142 U32 symbol; in FSE_buildCTable_wksp()
159 U32 u; in FSE_buildCTable_wksp()
181 U32 const maxBitsOut = tableLog - BIT_highbit32(normalizedCounter[s] - 1); in FSE_buildCTable_wksp()
182 U32 const minStatePlus = normalizedCounter[s] << maxBitsOut; in FSE_buildCTable_wksp()
213 U32 bitStream; in FSE_writeNCount_generic()
345 U32 s; in FSE_count_simple()
364 U32 *const Counting1 = workSpace; in FSE_count_parallel_wksp()
365 U32 *const Counting2 = Counting1 + 256; in FSE_count_parallel_wksp()
366 U32 *const Counting3 = Counting2 + 256; in FSE_count_parallel_wksp()
367 U32 *const Counting4 = Counting3 + 256; in FSE_count_parallel_wksp()
382 U32 cached = ZSTD_read32(ip); in FSE_count_parallel_wksp()
385 U32 c = cached; in FSE_count_parallel_wksp()
422 U32 s; in FSE_count_parallel_wksp()
431 U32 s; in FSE_count_parallel_wksp()
481 return FSE_CTABLE_SIZE_U32(tableLog, maxSymbolValue) * sizeof(U32); in FSE_sizeof_CTable()
487 U32 minBitsSrc = BIT_highbit32((U32)(srcSize - 1)) + 1; in FSE_minTableLog()
488 U32 minBitsSymbols = BIT_highbit32(maxSymbolValue) + 2; in FSE_minTableLog()
489 U32 minBits = minBitsSrc < minBitsSymbols ? minBitsSrc : minBitsSymbols; in FSE_minTableLog()
495 U32 maxBitsSrc = BIT_highbit32((U32)(srcSize - 1)) - minus; in FSE_optimalTableLog_internal()
496 U32 tableLog = maxTableLog; in FSE_optimalTableLog_internal()
497 U32 minBits = FSE_minTableLog(srcSize, maxSymbolValue); in FSE_optimalTableLog_internal()
519 static size_t FSE_normalizeM2(short *norm, U32 tableLog, const unsigned *count, size_t total, U32 m… in FSE_normalizeM2()
522 U32 s; in FSE_normalizeM2()
523 U32 distributed = 0; in FSE_normalizeM2()
524 U32 ToDistribute; in FSE_normalizeM2()
527 U32 const lowThreshold = (U32)(total >> tableLog); in FSE_normalizeM2()
528 U32 lowOne = (U32)((total * 3) >> (tableLog + 1)); in FSE_normalizeM2()
554 lowOne = (U32)((total * 3) / (ToDistribute * 2)); in FSE_normalizeM2()
570 U32 maxV = 0, maxC = 0; in FSE_normalizeM2()
589 …U64 const rStep = div_u64((((U64)1 << vStepLog) * ToDistribute) + mid, (U32)total); /* scale on re… in FSE_normalizeM2()
594 U32 const sStart = (U32)(tmpTotal >> vStepLog); in FSE_normalizeM2()
595 U32 const sEnd = (U32)(end >> vStepLog); in FSE_normalizeM2()
596 U32 const weight = sEnd - sStart; in FSE_normalizeM2()
621 U32 const rtbTable[] = {0, 473195, 504333, 520860, 550000, 700000, 750000, 830000}; in FSE_normalizeCount()
623 U64 const step = div_u64((U64)1 << 62, (U32)total); /* <== here, one division ! */ in FSE_normalizeCount()
629 U32 lowThreshold = (U32)(total >> tableLog); in FSE_normalizeCount()
673 …void *const FSCT = ((U32 *)ptr) + 1 /* header */ + (tableSize >> 1); /* assumption : tableLog >= 1… in FSE_buildCTable_raw()
691 const U32 deltaNbBits = (nbBits << 16) - (1 << nbBits); in FSE_buildCTable_raw()
706 void *FSCTptr = (U32 *)ptr + 2; in FSE_buildCTable_rle()