maxSymbolValue   2605 lib/zstd/compress.c static size_t ZSTD_checkDictNCount(short *normalizedCounter, unsigned dictMaxSymbolValue, unsigned maxSymbolValue)
maxSymbolValue   2608 lib/zstd/compress.c 	if (dictMaxSymbolValue < maxSymbolValue)
maxSymbolValue   2610 lib/zstd/compress.c 	for (s = 0; s <= maxSymbolValue; ++s) {
maxSymbolValue    100 lib/zstd/fse.h FSE_PUBLIC_API unsigned FSE_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue);
maxSymbolValue    107 lib/zstd/fse.h FSE_PUBLIC_API size_t FSE_normalizeCount(short *normalizedCounter, unsigned tableLog, const unsigned *count, size_t srcSize, unsigned maxSymbolValue);
maxSymbolValue    112 lib/zstd/fse.h FSE_PUBLIC_API size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog);
maxSymbolValue    118 lib/zstd/fse.h FSE_PUBLIC_API size_t FSE_writeNCount(void *buffer, size_t bufferSize, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog);
maxSymbolValue    190 lib/zstd/fse.h FSE_PUBLIC_API size_t FSE_buildDTable_wksp(FSE_DTable *dt, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workspace, size_t workspaceSize);
maxSymbolValue    239 lib/zstd/fse.h #define FSE_CTABLE_SIZE_U32(maxTableLog, maxSymbolValue) (1 + (1 << (maxTableLog - 1)) + ((maxSymbolValue + 1) * 2))
maxSymbolValue    263 lib/zstd/fse.h unsigned FSE_optimalTableLog_internal(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue, unsigned minus);
maxSymbolValue    276 lib/zstd/fse.h size_t FSE_buildCTable_wksp(FSE_CTable *ct, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workSpace, size_t wkspSize);
maxSymbolValue     92 lib/zstd/fse_compress.c size_t FSE_buildCTable_wksp(FSE_CTable *ct, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workspace, size_t workspaceSize)
maxSymbolValue    119 lib/zstd/fse_compress.c 	tableU16[-1] = (U16)maxSymbolValue;
maxSymbolValue    128 lib/zstd/fse_compress.c 		for (u = 1; u <= maxSymbolValue + 1; u++) {
maxSymbolValue    136 lib/zstd/fse_compress.c 		cumul[maxSymbolValue + 1] = tableSize + 1;
maxSymbolValue    143 lib/zstd/fse_compress.c 		for (symbol = 0; symbol <= maxSymbolValue; symbol++) {
maxSymbolValue    170 lib/zstd/fse_compress.c 		for (s = 0; s <= maxSymbolValue; s++) {
maxSymbolValue    197 lib/zstd/fse_compress.c size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog)
maxSymbolValue    199 lib/zstd/fse_compress.c 	size_t const maxHeaderSize = (((maxSymbolValue + 1) * tableLog) >> 3) + 3;
maxSymbolValue    200 lib/zstd/fse_compress.c 	return maxSymbolValue ? maxHeaderSize : FSE_NCOUNTBOUND; /* maxSymbolValue==0 ? use default */
maxSymbolValue    203 lib/zstd/fse_compress.c static size_t FSE_writeNCount_generic(void *header, size_t headerBufferSize, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog,
maxSymbolValue    295 lib/zstd/fse_compress.c 	if (charnum > maxSymbolValue + 1)
maxSymbolValue    301 lib/zstd/fse_compress.c size_t FSE_writeNCount(void *buffer, size_t bufferSize, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog)
maxSymbolValue    308 lib/zstd/fse_compress.c 	if (bufferSize < FSE_NCountWriteBound(maxSymbolValue, tableLog))
maxSymbolValue    309 lib/zstd/fse_compress.c 		return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0);
maxSymbolValue    311 lib/zstd/fse_compress.c 	return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1);
maxSymbolValue    328 lib/zstd/fse_compress.c 	unsigned maxSymbolValue = *maxSymbolValuePtr;
maxSymbolValue    331 lib/zstd/fse_compress.c 	memset(count, 0, (maxSymbolValue + 1) * sizeof(*count));
maxSymbolValue    340 lib/zstd/fse_compress.c 	while (!count[maxSymbolValue])
maxSymbolValue    341 lib/zstd/fse_compress.c 		maxSymbolValue--;
maxSymbolValue    342 lib/zstd/fse_compress.c 	*maxSymbolValuePtr = maxSymbolValue;
maxSymbolValue    346 lib/zstd/fse_compress.c 		for (s = 0; s <= maxSymbolValue; s++)
maxSymbolValue    362 lib/zstd/fse_compress.c 	unsigned maxSymbolValue = *maxSymbolValuePtr;
maxSymbolValue    373 lib/zstd/fse_compress.c 		memset(count, 0, maxSymbolValue + 1);
maxSymbolValue    377 lib/zstd/fse_compress.c 	if (!maxSymbolValue)
maxSymbolValue    378 lib/zstd/fse_compress.c 		maxSymbolValue = 255; /* 0 == default */
maxSymbolValue    423 lib/zstd/fse_compress.c 		for (s = 255; s > maxSymbolValue; s--) {
maxSymbolValue    432 lib/zstd/fse_compress.c 		for (s = 0; s <= maxSymbolValue; s++) {
maxSymbolValue    439 lib/zstd/fse_compress.c 	while (!count[maxSymbolValue])
maxSymbolValue    440 lib/zstd/fse_compress.c 		maxSymbolValue--;
maxSymbolValue    441 lib/zstd/fse_compress.c 	*maxSymbolValuePtr = maxSymbolValue;
maxSymbolValue    477 lib/zstd/fse_compress.c size_t FSE_sizeof_CTable(unsigned maxSymbolValue, unsigned tableLog)
maxSymbolValue    481 lib/zstd/fse_compress.c 	return FSE_CTABLE_SIZE_U32(tableLog, maxSymbolValue) * sizeof(U32);
maxSymbolValue    485 lib/zstd/fse_compress.c static unsigned FSE_minTableLog(size_t srcSize, unsigned maxSymbolValue)
maxSymbolValue    488 lib/zstd/fse_compress.c 	U32 minBitsSymbols = BIT_highbit32(maxSymbolValue) + 2;
maxSymbolValue    493 lib/zstd/fse_compress.c unsigned FSE_optimalTableLog_internal(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue, unsigned minus)
maxSymbolValue    497 lib/zstd/fse_compress.c 	U32 minBits = FSE_minTableLog(srcSize, maxSymbolValue);
maxSymbolValue    511 lib/zstd/fse_compress.c unsigned FSE_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue)
maxSymbolValue    513 lib/zstd/fse_compress.c 	return FSE_optimalTableLog_internal(maxTableLog, srcSize, maxSymbolValue, 2);
maxSymbolValue    519 lib/zstd/fse_compress.c static size_t FSE_normalizeM2(short *norm, U32 tableLog, const unsigned *count, size_t total, U32 maxSymbolValue)
maxSymbolValue    530 lib/zstd/fse_compress.c 	for (s = 0; s <= maxSymbolValue; s++) {
maxSymbolValue    555 lib/zstd/fse_compress.c 		for (s = 0; s <= maxSymbolValue; s++) {
maxSymbolValue    566 lib/zstd/fse_compress.c 	if (distributed == maxSymbolValue + 1) {
maxSymbolValue    571 lib/zstd/fse_compress.c 		for (s = 0; s <= maxSymbolValue; s++)
maxSymbolValue    580 lib/zstd/fse_compress.c 		for (s = 0; ToDistribute > 0; s = (s + 1) % (maxSymbolValue + 1))
maxSymbolValue    591 lib/zstd/fse_compress.c 		for (s = 0; s <= maxSymbolValue; s++) {
maxSymbolValue    608 lib/zstd/fse_compress.c size_t FSE_normalizeCount(short *normalizedCounter, unsigned tableLog, const unsigned *count, size_t total, unsigned maxSymbolValue)
maxSymbolValue    617 lib/zstd/fse_compress.c 	if (tableLog < FSE_minTableLog(total, maxSymbolValue))
maxSymbolValue    631 lib/zstd/fse_compress.c 		for (s = 0; s <= maxSymbolValue; s++) {
maxSymbolValue    655 lib/zstd/fse_compress.c 			size_t const errorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue);
maxSymbolValue    670 lib/zstd/fse_compress.c 	const unsigned maxSymbolValue = tableMask;
maxSymbolValue    683 lib/zstd/fse_compress.c 	tableU16[-1] = (U16)maxSymbolValue;
maxSymbolValue    692 lib/zstd/fse_compress.c 		for (s = 0; s <= maxSymbolValue; s++) {
maxSymbolValue     95 lib/zstd/fse_decompress.c size_t FSE_buildDTable_wksp(FSE_DTable *dt, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workspace, size_t workspaceSize)
maxSymbolValue    101 lib/zstd/fse_decompress.c 	U32 const maxSV1 = maxSymbolValue + 1;
maxSymbolValue    108 lib/zstd/fse_decompress.c 	if (maxSymbolValue > FSE_MAX_SYMBOL_VALUE)
maxSymbolValue    299 lib/zstd/fse_decompress.c 	unsigned maxSymbolValue = FSE_MAX_SYMBOL_VALUE;
maxSymbolValue    319 lib/zstd/fse_decompress.c 	NCountLength = FSE_readNCount(counting, &maxSymbolValue, &tableLog, istart, cSrcSize);
maxSymbolValue    329 lib/zstd/fse_decompress.c 	CHECK_F(FSE_buildDTable_wksp(dt, counting, maxSymbolValue, tableLog, workspace, workspaceSize));
maxSymbolValue     57 lib/zstd/huf.h size_t HUF_compress4X_wksp(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void *workSpace,
maxSymbolValue     82 lib/zstd/huf.h #define HUF_CREATE_STATIC_CTABLE(name, maxSymbolValue) \
maxSymbolValue     83 lib/zstd/huf.h 	U32 name##hb[maxSymbolValue + 1];              \
maxSymbolValue    128 lib/zstd/huf.h unsigned HUF_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue);
maxSymbolValue    130 lib/zstd/huf.h size_t HUF_writeCTable_wksp(void *dst, size_t maxDstSize, const HUF_CElt *CTable, unsigned maxSymbolValue, unsigned huffLog, void *workspace, size_t workspaceSize);
maxSymbolValue    144 lib/zstd/huf.h size_t HUF_compress4X_repeat(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void *workSpace,
maxSymbolValue    152 lib/zstd/huf.h size_t HUF_buildCTable_wksp(HUF_CElt *tree, const U32 *count, U32 maxSymbolValue, U32 maxNbBits, void *workSpace, size_t wkspSize);
maxSymbolValue    164 lib/zstd/huf.h size_t HUF_readCTable_wksp(HUF_CElt *CTable, unsigned maxSymbolValue, const void *src, size_t srcSize, void *workspace, size_t workspaceSize);
maxSymbolValue    189 lib/zstd/huf.h size_t HUF_compress1X_wksp(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void *workSpace,
maxSymbolValue    197 lib/zstd/huf.h size_t HUF_compress1X_repeat(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void *workSpace,
maxSymbolValue     68 lib/zstd/huf_compress.c unsigned HUF_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue)
maxSymbolValue     70 lib/zstd/huf_compress.c 	return FSE_optimalTableLog_internal(maxTableLog, srcSize, maxSymbolValue, 1);
maxSymbolValue     88 lib/zstd/huf_compress.c 	U32 maxSymbolValue = HUF_TABLELOG_MAX;
maxSymbolValue    116 lib/zstd/huf_compress.c 		CHECK_V_F(maxCount, FSE_count_simple(count, &maxSymbolValue, weightTable, wtSize));
maxSymbolValue    123 lib/zstd/huf_compress.c 	tableLog = FSE_optimalTableLog(tableLog, wtSize, maxSymbolValue);
maxSymbolValue    124 lib/zstd/huf_compress.c 	CHECK_F(FSE_normalizeCount(norm, tableLog, count, wtSize, maxSymbolValue));
maxSymbolValue    128 lib/zstd/huf_compress.c 		CHECK_V_F(hSize, FSE_writeNCount(op, oend - op, norm, maxSymbolValue, tableLog));
maxSymbolValue    133 lib/zstd/huf_compress.c 	CHECK_F(FSE_buildCTable_wksp(CTable, norm, maxSymbolValue, tableLog, workspace, workspaceSize));
maxSymbolValue    152 lib/zstd/huf_compress.c size_t HUF_writeCTable_wksp(void *dst, size_t maxDstSize, const HUF_CElt *CTable, U32 maxSymbolValue, U32 huffLog, void *workspace, size_t workspaceSize)
maxSymbolValue    172 lib/zstd/huf_compress.c 	if (maxSymbolValue > HUF_SYMBOLVALUE_MAX)
maxSymbolValue    179 lib/zstd/huf_compress.c 	for (n = 0; n < maxSymbolValue; n++)
maxSymbolValue    184 lib/zstd/huf_compress.c 		CHECK_V_F(hSize, HUF_compressWeights_wksp(op + 1, maxDstSize - 1, huffWeight, maxSymbolValue, workspace, workspaceSize));
maxSymbolValue    185 lib/zstd/huf_compress.c 		if ((hSize > 1) & (hSize < maxSymbolValue / 2)) { /* FSE compressed */
maxSymbolValue    192 lib/zstd/huf_compress.c 	if (maxSymbolValue > (256 - 128))
maxSymbolValue    194 lib/zstd/huf_compress.c 	if (((maxSymbolValue + 1) / 2) + 1 > maxDstSize)
maxSymbolValue    196 lib/zstd/huf_compress.c 	op[0] = (BYTE)(128 /*special case*/ + (maxSymbolValue - 1));
maxSymbolValue    197 lib/zstd/huf_compress.c 	huffWeight[maxSymbolValue] = 0; /* to be sure it doesn't cause msan issue in final combination */
maxSymbolValue    198 lib/zstd/huf_compress.c 	for (n = 0; n < maxSymbolValue; n += 2)
maxSymbolValue    200 lib/zstd/huf_compress.c 	return ((maxSymbolValue + 1) / 2) + 1;
maxSymbolValue    203 lib/zstd/huf_compress.c size_t HUF_readCTable_wksp(HUF_CElt *CTable, U32 maxSymbolValue, const void *src, size_t srcSize, void *workspace, size_t workspaceSize)
maxSymbolValue    230 lib/zstd/huf_compress.c 	if (nbSymbols > maxSymbolValue + 1)
maxSymbolValue    275 lib/zstd/huf_compress.c 			for (n = 0; n <= maxSymbolValue; n++)
maxSymbolValue    389 lib/zstd/huf_compress.c static void HUF_sort(nodeElt *huffNode, const U32 *count, U32 maxSymbolValue)
maxSymbolValue    395 lib/zstd/huf_compress.c 	for (n = 0; n <= maxSymbolValue; n++) {
maxSymbolValue    403 lib/zstd/huf_compress.c 	for (n = 0; n <= maxSymbolValue; n++) {
maxSymbolValue    420 lib/zstd/huf_compress.c size_t HUF_buildCTable_wksp(HUF_CElt *tree, const U32 *count, U32 maxSymbolValue, U32 maxNbBits, void *workSpace, size_t wkspSize)
maxSymbolValue    434 lib/zstd/huf_compress.c 	if (maxSymbolValue > HUF_SYMBOLVALUE_MAX)
maxSymbolValue    439 lib/zstd/huf_compress.c 	HUF_sort(huffNode, count, maxSymbolValue);
maxSymbolValue    442 lib/zstd/huf_compress.c 	nonNullRank = maxSymbolValue;
maxSymbolValue    492 lib/zstd/huf_compress.c 		for (n = 0; n <= maxSymbolValue; n++)
maxSymbolValue    494 lib/zstd/huf_compress.c 		for (n = 0; n <= maxSymbolValue; n++)
maxSymbolValue    501 lib/zstd/huf_compress.c static size_t HUF_estimateCompressedSize(HUF_CElt *CTable, const unsigned *count, unsigned maxSymbolValue)
maxSymbolValue    505 lib/zstd/huf_compress.c 	for (s = 0; s <= (int)maxSymbolValue; ++s) {
maxSymbolValue    511 lib/zstd/huf_compress.c static int HUF_validateCTable(const HUF_CElt *CTable, const unsigned *count, unsigned maxSymbolValue)
maxSymbolValue    515 lib/zstd/huf_compress.c 	for (s = 0; s <= (int)maxSymbolValue; ++s) {
maxSymbolValue    653 lib/zstd/huf_compress.c static size_t HUF_compress_internal(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog,
maxSymbolValue    676 lib/zstd/huf_compress.c 	if (!maxSymbolValue)
maxSymbolValue    677 lib/zstd/huf_compress.c 		maxSymbolValue = HUF_SYMBOLVALUE_MAX;
maxSymbolValue    695 lib/zstd/huf_compress.c 		CHECK_V_F(largest, FSE_count_wksp(count, &maxSymbolValue, (const BYTE *)src, srcSize, (U32 *)workSpace));
maxSymbolValue    705 lib/zstd/huf_compress.c 	if (repeat && *repeat == HUF_repeat_check && !HUF_validateCTable(oldHufTable, count, maxSymbolValue)) {
maxSymbolValue    714 lib/zstd/huf_compress.c 	huffLog = HUF_optimalTableLog(huffLog, srcSize, maxSymbolValue);
maxSymbolValue    716 lib/zstd/huf_compress.c 		CHECK_V_F(maxBits, HUF_buildCTable_wksp(CTable, count, maxSymbolValue, huffLog, workSpace, wkspSize));
maxSymbolValue    719 lib/zstd/huf_compress.c 		memset(CTable + maxSymbolValue + 1, 0, CTableSize - (maxSymbolValue + 1) * sizeof(HUF_CElt));
maxSymbolValue    724 lib/zstd/huf_compress.c 		CHECK_V_F(hSize, HUF_writeCTable_wksp(op, dstSize, CTable, maxSymbolValue, huffLog, workSpace, wkspSize));
maxSymbolValue    727 lib/zstd/huf_compress.c 			size_t const oldSize = HUF_estimateCompressedSize(oldHufTable, count, maxSymbolValue);
maxSymbolValue    728 lib/zstd/huf_compress.c 			size_t const newSize = HUF_estimateCompressedSize(CTable, count, maxSymbolValue);
maxSymbolValue    748 lib/zstd/huf_compress.c size_t HUF_compress1X_wksp(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void *workSpace,
maxSymbolValue    751 lib/zstd/huf_compress.c 	return HUF_compress_internal(dst, dstSize, src, srcSize, maxSymbolValue, huffLog, 1 /* single stream */, workSpace, wkspSize, NULL, NULL, 0);
maxSymbolValue    754 lib/zstd/huf_compress.c size_t HUF_compress1X_repeat(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void *workSpace,
maxSymbolValue    757 lib/zstd/huf_compress.c 	return HUF_compress_internal(dst, dstSize, src, srcSize, maxSymbolValue, huffLog, 1 /* single stream */, workSpace, wkspSize, hufTable, repeat,
maxSymbolValue    761 lib/zstd/huf_compress.c size_t HUF_compress4X_wksp(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void *workSpace,
maxSymbolValue    764 lib/zstd/huf_compress.c 	return HUF_compress_internal(dst, dstSize, src, srcSize, maxSymbolValue, huffLog, 0 /* 4 streams */, workSpace, wkspSize, NULL, NULL, 0);
maxSymbolValue    767 lib/zstd/huf_compress.c size_t HUF_compress4X_repeat(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void *workSpace,
maxSymbolValue    770 lib/zstd/huf_compress.c 	return HUF_compress_internal(dst, dstSize, src, srcSize, maxSymbolValue, huffLog, 0 /* 4 streams */, workSpace, wkspSize, hufTable, repeat,