Function zstud_sys::FSE_normalizeCount
source · pub unsafe extern "C" fn FSE_normalizeCount(
normalizedCounter: *mut c_short,
tableLog: c_uint,
count: *const c_uint,
srcSize: usize,
maxSymbolValue: c_uint,
useLowProbCount: c_uint
) -> usizeExpand description
FSE_normalizeCount(): normalize counts so that sum(count[]) == Power_of_2 (2^tableLog) ‘normalizedCounter’ is a table of short, of minimum size (maxSymbolValue+1). useLowProbCount is a boolean parameter which trades off compressed size for faster header decoding. When it is set to 1, the compressed data will be slightly smaller. And when it is set to 0, FSE_readNCount() and FSE_buildDTable() will be faster. If you are compressing a small amount of data (< 2 KB) then useLowProbCount=0 is a good default, since header deserialization makes a big speed difference. Otherwise, useLowProbCount=1 is a good default, since the speed difference is small. @return : tableLog, or an errorCode, which can be tested using FSE_isError()