Searched refs:maxSymbolValue (Results 1 - 25 of 29) sorted by relevance

12

/freebsd-current/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dfse_compress.c67 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog,
85 tableU16[-1] = (U16) maxSymbolValue;
98 for (u=1; u <= maxSymbolValue+1; u++) {
105 cumul[maxSymbolValue+1] = tableSize+1;
111 for (symbol=0; symbol<=maxSymbolValue; symbol++) {
133 for (s=0; s<=maxSymbolValue; s++) {
159 for (symbol=0; symbol<=maxSymbolValue; symbol++) {
172 size_t FSE_buildCTable(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) argument
175 return FSE_buildCTable_wksp(ct, normalizedCounter, maxSymbolValue, tableLog, tableSymbol, sizeof(tableSymbol));
186 size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigne argument
66 FSE_buildCTable_wksp(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize) argument
193 FSE_writeNCount_generic(void* header, size_t headerBufferSize, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, unsigned writeIsSafe) argument
288 FSE_writeNCount(void* buffer, size_t bufferSize, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) argument
305 FSE_createCTable(unsigned maxSymbolValue, unsigned tableLog) argument
316 FSE_minTableLog(size_t srcSize, unsigned maxSymbolValue) argument
325 FSE_optimalTableLog_internal(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue, unsigned minus) argument
339 FSE_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue) argument
348 FSE_normalizeM2(short* norm, U32 tableLog, const unsigned* count, size_t total, U32 maxSymbolValue) argument
435 FSE_normalizeCount(short* normalizedCounter, unsigned tableLog, const unsigned* count, size_t total, unsigned maxSymbolValue) argument
502 const unsigned maxSymbolValue = tableMask; local
632 FSE_compress_wksp(void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize) argument
684 FSE_compress2(void* dst, size_t dstCapacity, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog) argument
[all...]
H A Dhist.c34 unsigned maxSymbolValue = *maxSymbolValuePtr; local
37 memset(count, 0, (maxSymbolValue+1) * sizeof(*count));
41 assert(*ip <= maxSymbolValue);
45 while (!count[maxSymbolValue]) maxSymbolValue--;
46 *maxSymbolValuePtr = maxSymbolValue;
49 for (s=0; s<=maxSymbolValue; s++)
74 unsigned maxSymbolValue = *maxSymbolValuePtr; local
85 memset(count, 0, maxSymbolValue + 1);
89 if (!maxSymbolValue) maxSymbolValu
[all...]
H A Dhuf_compress.c48 unsigned HUF_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue) argument
50 return FSE_optimalTableLog_internal(maxTableLog, srcSize, maxSymbolValue, 1);
69 unsigned maxSymbolValue = HUF_TABLELOG_MAX; local
82 { unsigned const maxCount = HIST_count_simple(count, &maxSymbolValue, weightTable, wtSize); /* never fails */
87 tableLog = FSE_optimalTableLog(tableLog, wtSize, maxSymbolValue);
88 CHECK_F( FSE_normalizeCount(norm, tableLog, count, wtSize, maxSymbolValue) );
91 { CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), norm, maxSymbolValue, tableLog) );
96 CHECK_F( FSE_buildCTable_wksp(CTable, norm, maxSymbolValue, tableLog, scratchBuffer, sizeof(scratchBuffer)) );
115 const HUF_CElt* CTable, unsigned maxSymbolValue, unsigned huffLog)
123 if (maxSymbolValue > HUF_SYMBOLVALUE_MA
114 HUF_writeCTable(void* dst, size_t maxDstSize, const HUF_CElt* CTable, unsigned maxSymbolValue, unsigned huffLog) argument
307 HUF_sort(nodeElt* huffNode, const unsigned* count, U32 maxSymbolValue, rankPos* rankPosition) argument
338 HUF_buildCTable_wksp(HUF_CElt* tree, const unsigned* count, U32 maxSymbolValue, U32 maxNbBits, void* workSpace, size_t wkspSize) argument
416 HUF_buildCTable(HUF_CElt* tree, const unsigned* count, unsigned maxSymbolValue, unsigned maxNbBits) argument
422 HUF_estimateCompressedSize(const HUF_CElt* CTable, const unsigned* count, unsigned maxSymbolValue) argument
432 HUF_validateCTable(const HUF_CElt* CTable, const unsigned* count, unsigned maxSymbolValue) argument
638 HUF_compress_internal(void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, HUF_nbStreams_e nbStreams, void* workSpace, size_t wkspSize, HUF_CElt* oldHufTable, HUF_repeat* repeat, int preferRepeat, const int bmi2) argument
727 HUF_compress1X_wksp(void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void* workSpace, size_t wkspSize) argument
738 HUF_compress1X_repeat(void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void* workSpace, size_t wkspSize, HUF_CElt* hufTable, HUF_repeat* repeat, int preferRepeat, int bmi2) argument
750 HUF_compress1X(void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog) argument
761 HUF_compress4X_wksp(void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void* workSpace, size_t wkspSize) argument
775 HUF_compress4X_repeat(void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void* workSpace, size_t wkspSize, HUF_CElt* hufTable, HUF_repeat* repeat, int preferRepeat, int bmi2) argument
787 HUF_compress2(void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog) argument
[all...]
H A Dzstd_compress_superblock.c75 unsigned maxSymbolValue = 255; local
101 { size_t const largest = HIST_count_wksp (countWksp, &maxSymbolValue, (const BYTE*)src, srcSize, workspace, wkspSize);
116 if (repeat == HUF_repeat_check && !HUF_validateCTable((HUF_CElt const*)prevHuf->CTable, countWksp, maxSymbolValue)) {
122 huffLog = HUF_optimalTableLog(huffLog, srcSize, maxSymbolValue);
124 maxSymbolValue, huffLog,
130 (HUF_CElt*)nextHuf->CTable, countWksp, maxSymbolValue);
133 (HUF_CElt*)nextHuf->CTable, maxSymbolValue, huffLog);
137 (HUF_CElt const*)prevHuf->CTable, countWksp, maxSymbolValue);
586 unsigned maxSymbolValue = 255; local
592 size_t const largest = HIST_count_wksp (countWksp, &maxSymbolValue, (cons
[all...]
H A Dzstd_compress_sequences.c49 U32 const maxSymbolValue = MEM_read16(u16ptr + 1); local
50 return maxSymbolValue;
100 DEBUGLOG(5, "Repeat FSE_CTable has maxSymbolValue %u < %u",
/freebsd-current/sys/contrib/zstd/lib/compress/
H A Dhist.c34 unsigned maxSymbolValue = *maxSymbolValuePtr; local
37 ZSTD_memset(count, 0, (maxSymbolValue+1) * sizeof(*count));
41 assert(*ip <= maxSymbolValue);
45 while (!count[maxSymbolValue]) maxSymbolValue--;
46 *maxSymbolValuePtr = maxSymbolValue;
49 for (s=0; s<=maxSymbolValue; s++)
126 { unsigned maxSymbolValue = 255; local
127 while (!Counting1[maxSymbolValue]) maxSymbolValue
[all...]
H A Dfse_compress.c68 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog,
78 U32 const maxSV1 = maxSymbolValue+1;
86 if (FSE_BUILD_CTABLE_WORKSPACE_SIZE(maxSymbolValue, tableLog) > wkspSize) return ERROR(tableLog_tooLarge);
89 tableU16[-1] = (U16) maxSymbolValue;
177 for (s=0; s<=maxSymbolValue; s++) {
204 for (symbol=0; symbol<=maxSymbolValue; symbol++) {
222 size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog) argument
224 size_t const maxHeaderSize = (((maxSymbolValue+1) * tableLog
229 return maxSymbolValue ? maxHeaderSize : FSE_NCOUNTBOUND; /* maxSymbolValue
67 FSE_buildCTable_wksp(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize) argument
233 FSE_writeNCount_generic(void* header, size_t headerBufferSize, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, unsigned writeIsSafe) argument
328 FSE_writeNCount(void* buffer, size_t bufferSize, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) argument
345 FSE_createCTable(unsigned maxSymbolValue, unsigned tableLog) argument
356 FSE_minTableLog(size_t srcSize, unsigned maxSymbolValue) argument
365 FSE_optimalTableLog_internal(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue, unsigned minus) argument
379 FSE_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue) argument
387 FSE_normalizeM2(short* norm, U32 tableLog, const unsigned* count, size_t total, U32 maxSymbolValue, short lowProbCount) argument
473 FSE_normalizeCount(short* normalizedCounter, unsigned tableLog, const unsigned* count, size_t total, unsigned maxSymbolValue, unsigned useLowProbCount) argument
541 const unsigned maxSymbolValue = tableMask; local
672 FSE_compress_wksp(void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize) argument
727 FSE_compress2(void* dst, size_t dstCapacity, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog) argument
[all...]
H A Dhuf_compress.c47 unsigned HUF_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue) argument
49 return FSE_optimalTableLog_internal(maxTableLog, srcSize, maxSymbolValue, 1);
98 unsigned maxSymbolValue = HUF_TABLELOG_MAX; local
108 { unsigned const maxCount = HIST_count_simple(wksp->count, &maxSymbolValue, weightTable, wtSize); /* never fails */
113 tableLog = FSE_optimalTableLog(tableLog, wtSize, maxSymbolValue);
114 CHECK_F( FSE_normalizeCount(wksp->norm, tableLog, wksp->count, wtSize, maxSymbolValue, /* useLowProbCount */ 0) );
117 { CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), wksp->norm, maxSymbolValue, tableLog) );
122 CHECK_F( FSE_buildCTable_wksp(wksp->CTable, wksp->norm, maxSymbolValue, tableLog, wksp->scratchBuffer, sizeof(wksp->scratchBuffer)) );
173 const HUF_CElt* CTable, unsigned maxSymbolValue, unsigned huffLog,
183 if (maxSymbolValue > HUF_SYMBOLVALUE_MA
172 HUF_writeCTable_wksp(void* dst, size_t maxDstSize, const HUF_CElt* CTable, unsigned maxSymbolValue, unsigned huffLog, void* workspace, size_t workspaceSize) argument
213 HUF_writeCTable(void* dst, size_t maxDstSize, const HUF_CElt* CTable, unsigned maxSymbolValue, unsigned huffLog) argument
550 HUF_sort(nodeElt huffNode[], const unsigned count[], U32 const maxSymbolValue, rankPos rankPosition[]) argument
610 HUF_buildTree(nodeElt* huffNode, U32 maxSymbolValue) argument
656 HUF_buildCTableFromTree(HUF_CElt* CTable, nodeElt const* huffNode, int nonNullRank, U32 maxSymbolValue, U32 maxNbBits) argument
680 HUF_buildCTable_wksp(HUF_CElt* CTable, const unsigned* count, U32 maxSymbolValue, U32 maxNbBits, void* workSpace, size_t wkspSize) argument
710 HUF_estimateCompressedSize(const HUF_CElt* CTable, const unsigned* count, unsigned maxSymbolValue) argument
721 HUF_validateCTable(const HUF_CElt* CTable, const unsigned* count, unsigned maxSymbolValue) argument
1178 HUF_compress_internal(void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, HUF_nbStreams_e nbStreams, void* workSpace, size_t wkspSize, HUF_CElt* oldHufTable, HUF_repeat* repeat, int preferRepeat, const int bmi2, unsigned suspectUncompressible) argument
1285 HUF_compress1X_wksp(void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void* workSpace, size_t wkspSize) argument
1296 HUF_compress1X_repeat(void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void* workSpace, size_t wkspSize, HUF_CElt* hufTable, HUF_repeat* repeat, int preferRepeat, int bmi2, unsigned suspectUncompressible) argument
1312 HUF_compress4X_wksp(void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void* workSpace, size_t wkspSize) argument
1327 HUF_compress4X_repeat(void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, void* workSpace, size_t wkspSize, HUF_CElt* hufTable, HUF_repeat* repeat, int preferRepeat, int bmi2, unsigned suspectUncompressible) argument
1344 HUF_buildCTable(HUF_CElt* tree, const unsigned* count, unsigned maxSymbolValue, unsigned maxNbBits) argument
1350 HUF_compress1X(void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog) argument
1358 HUF_compress2(void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog) argument
[all...]
H A Dzstd_compress_superblock.c309 unsigned maxSymbolValue = 255; local
315 size_t const largest = HIST_count_wksp (countWksp, &maxSymbolValue, (const BYTE*)literals, litSize, workspace, wkspSize);
317 { size_t cLitSizeEstimate = HUF_estimateCompressedSize((const HUF_CElt*)huf->CTable, countWksp, maxSymbolValue);
H A Dzstd_compress_sequences.c49 U32 const maxSymbolValue = MEM_read16(u16ptr + 1); local
50 return maxSymbolValue;
115 DEBUGLOG(5, "Repeat FSE_CTable has maxSymbolValue %u < %u",
H A Dzstd_compress.c3068 unsigned maxSymbolValue = HUF_SYMBOLVALUE_MAX; local
3095 { size_t const largest = HIST_count_wksp (countWksp, &maxSymbolValue, (const BYTE*)src, srcSize, workspace, wkspSize);
3110 if (repeat == HUF_repeat_check && !HUF_validateCTable((HUF_CElt const*)prevHuf->CTable, countWksp, maxSymbolValue)) {
3116 huffLog = HUF_optimalTableLog(huffLog, srcSize, maxSymbolValue);
3118 maxSymbolValue, huffLog,
3124 (HUF_CElt*)nextHuf->CTable, countWksp, maxSymbolValue);
3127 (HUF_CElt*)nextHuf->CTable, maxSymbolValue, huffLog,
3132 (HUF_CElt const*)prevHuf->CTable, countWksp, maxSymbolValue);
3244 unsigned maxSymbolValue = HUF_SYMBOLVALUE_MAX; local
3251 size_t const largest = HIST_count_wksp (countWksp, &maxSymbolValue, (cons
4300 ZSTD_dictNCountRepeat(short* normalizedCounter, unsigned dictMaxSymbolValue, unsigned maxSymbolValue) argument
4324 { unsigned maxSymbolValue = 255; local
[all...]
/freebsd-current/sys/contrib/zstd/lib/common/
H A Dfse.h98 Same as FSE_compress(), but allows the selection of 'maxSymbolValue' and 'tableLog'
105 FSE_PUBLIC_API size_t FSE_compress2 (void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog);
135 FSE_PUBLIC_API unsigned FSE_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue);
139 'normalizedCounter' is a table of short, of minimum size (maxSymbolValue+1).
149 const unsigned* count, size_t srcSize, unsigned maxSymbolValue, unsigned useLowProbCount);
152 Provides the maximum possible size of an FSE normalized table, given 'maxSymbolValue' and 'tableLog'.
154 FSE_PUBLIC_API size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog);
162 unsigned maxSymbolValue, unsigned tableLog);
165 Note that FSE_CTable size depends on 'tableLog' and 'maxSymbolValue' */
167 FSE_PUBLIC_API FSE_CTable* FSE_createCTable (unsigned maxSymbolValue, unsigne
[all...]
H A Dhuf.h83 * Same as HUF_compress(), but offers control over `maxSymbolValue` and `tableLog`.
84 * `maxSymbolValue` must be <= HUF_SYMBOLVALUE_MAX .
88 unsigned maxSymbolValue, unsigned tableLog);
97 unsigned maxSymbolValue, unsigned tableLog,
140 #define HUF_CTABLE_SIZE_ST(maxSymbolValue) ((maxSymbolValue)+2) /* Use tables of size_t, for proper alignment */
141 #define HUF_CTABLE_SIZE(maxSymbolValue) (HUF_CTABLE_SIZE_ST(maxSymbolValue) * sizeof(size_t))
142 #define HUF_CREATE_STATIC_CTABLE(name, maxSymbolValue) \
143 HUF_CElt name[HUF_CTABLE_SIZE_ST(maxSymbolValue)] /* n
[all...]
H A Dfse_decompress.c71 static size_t FSE_buildDTable_internal(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize) argument
76 BYTE* spread = (BYTE*)(symbolNext + maxSymbolValue + 1);
78 U32 const maxSV1 = maxSymbolValue + 1;
83 if (FSE_BUILD_DTABLE_WKSP_SIZE(tableLog, maxSymbolValue) > wkspSize) return ERROR(maxSymbolValue_tooLarge);
84 if (maxSymbolValue > FSE_MAX_SYMBOL_VALUE) return ERROR(maxSymbolValue_tooLarge);
176 size_t FSE_buildDTable_wksp(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize) argument
178 return FSE_buildDTable_internal(dt, normalizedCounter, maxSymbolValue, tableLog, workSpace, wkspSize);
328 unsigned maxSymbolValue = FSE_MAX_SYMBOL_VALUE; local
336 size_t const NCountLength = FSE_readNCount_bmi2(wksp->ncount, &maxSymbolValue, &tableLog, istart, cSrcSize, bmi2);
344 if (FSE_DECOMPRESS_WKSP_SIZE(tableLog, maxSymbolValue) > wkspSiz
389 FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) argument
[all...]
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress_block.h54 const short* normalizedCounter, unsigned maxSymbolValue,
/freebsd-current/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress_block.h62 const short* normalizedCounter, unsigned maxSymbolValue,
H A Dzstd_decompress_block.c445 const short* normalizedCounter, unsigned maxSymbolValue,
450 U32 const maxSV1 = maxSymbolValue + 1;
459 assert(maxSymbolValue <= MaxSeq);
565 const short* normalizedCounter, unsigned maxSymbolValue,
569 ZSTD_buildFSETable_body(dt, normalizedCounter, maxSymbolValue,
575 const short* normalizedCounter, unsigned maxSymbolValue,
579 ZSTD_buildFSETable_body(dt, normalizedCounter, maxSymbolValue,
585 const short* normalizedCounter, unsigned maxSymbolValue,
591 ZSTD_buildFSETable_body_bmi2(dt, normalizedCounter, maxSymbolValue,
597 ZSTD_buildFSETable_body_default(dt, normalizedCounter, maxSymbolValue,
444 ZSTD_buildFSETable_body(ZSTD_seqSymbol* dt, const short* normalizedCounter, unsigned maxSymbolValue, const U32* baseValue, const U8* nbAdditionalBits, unsigned tableLog, void* wksp, size_t wkspSize) argument
564 ZSTD_buildFSETable_body_default(ZSTD_seqSymbol* dt, const short* normalizedCounter, unsigned maxSymbolValue, const U32* baseValue, const U8* nbAdditionalBits, unsigned tableLog, void* wksp, size_t wkspSize) argument
574 ZSTD_buildFSETable_body_bmi2(ZSTD_seqSymbol* dt, const short* normalizedCounter, unsigned maxSymbolValue, const U32* baseValue, const U8* nbAdditionalBits, unsigned tableLog, void* wksp, size_t wkspSize) argument
584 ZSTD_buildFSETable(ZSTD_seqSymbol* dt, const short* normalizedCounter, unsigned maxSymbolValue, const U32* baseValue, const U8* nbAdditionalBits, unsigned tableLog, void* wksp, size_t wkspSize, int bmi2) argument
[all...]
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/common/
H A Dhuf.h83 * Same as HUF_compress(), but offers control over `maxSymbolValue` and `tableLog`.
84 * `maxSymbolValue` must be <= HUF_SYMBOLVALUE_MAX .
88 unsigned maxSymbolValue, unsigned tableLog);
97 unsigned maxSymbolValue, unsigned tableLog,
136 #define HUF_CTABLE_SIZE_U32(maxSymbolValue) ((maxSymbolValue)+1) /* Use tables of U32, for proper alignment */
137 #define HUF_CTABLE_SIZE(maxSymbolValue) (HUF_CTABLE_SIZE_U32(maxSymbolValue) * sizeof(U32))
138 #define HUF_CREATE_STATIC_CTABLE(name, maxSymbolValue) \
139 U32 name##hb[HUF_CTABLE_SIZE_U32(maxSymbolValue)]; \
[all...]
H A Dfse.h98 Same as FSE_compress(), but allows the selection of 'maxSymbolValue' and 'tableLog'
105 FSE_PUBLIC_API size_t FSE_compress2 (void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog);
135 FSE_PUBLIC_API unsigned FSE_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue);
139 'normalizedCounter' is a table of short, of minimum size (maxSymbolValue+1).
143 const unsigned* count, size_t srcSize, unsigned maxSymbolValue);
146 Provides the maximum possible size of an FSE normalized table, given 'maxSymbolValue' and 'tableLog'.
148 FSE_PUBLIC_API size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog);
156 unsigned maxSymbolValue, unsigned tableLog);
159 Note that FSE_CTable size depends on 'tableLog' and 'maxSymbolValue' */
161 FSE_PUBLIC_API FSE_CTable* FSE_createCTable (unsigned maxSymbolValue, unsigne
[all...]
H A Dfse_decompress.c59 size_t FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) argument
65 U32 const maxSV1 = maxSymbolValue + 1;
70 if (maxSymbolValue > FSE_MAX_SYMBOL_VALUE) return ERROR(maxSymbolValue_tooLarge);
249 unsigned maxSymbolValue = FSE_MAX_SYMBOL_VALUE; local
252 size_t const NCountLength = FSE_readNCount (counting, &maxSymbolValue, &tableLog, istart, cSrcSize);
259 CHECK_F( FSE_buildDTable (workSpace, counting, maxSymbolValue, tableLog) );
/freebsd-current/sys/contrib/zstd/lib/legacy/
H A Dzstd_v01.c396 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog)
412 if (maxSymbolValue > FSE_MAX_SYMBOL_VALUE) return (size_t)-FSE_ERROR_maxSymbolValue_tooLarge;
417 for (s=0; s<=maxSymbolValue; s++)
432 for (s=0; s<=maxSymbolValue; s++)
618 const unsigned maxSymbolValue = tableMask; local
627 for (s=0; s<=maxSymbolValue; s++)
904 unsigned maxSymbolValue = FSE_MAX_SYMBOL_VALUE; local
910 errorCode = FSE_readNCount (counting, &maxSymbolValue, &tableLog, istart, cSrcSize);
916 errorCode = FSE_buildDTable (dt, counting, maxSymbolValue, tableLog);
395 FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) argument
H A Dzstd_v03.c604 Note that its size depends on 'tableLog' and 'maxSymbolValue' */
657 #define FSE_CTABLE_SIZE_U32(maxTableLog, maxSymbolValue) (1 + (1<<(maxTableLog-1)) + ((maxSymbolValue+1)*2))
1097 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog)
1113 if (maxSymbolValue > FSE_MAX_SYMBOL_VALUE) return ERROR(maxSymbolValue_tooLarge);
1118 for (s=0; s<=maxSymbolValue; s++)
1133 for (s=0; s<=maxSymbolValue; s++)
1319 const unsigned maxSymbolValue = tableMask; local
1328 for (s=0; s<=maxSymbolValue; s++)
1428 unsigned maxSymbolValue local
1096 FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) argument
[all...]
H A Dzstd_v04.c493 static size_t FSE_buildDTable ( FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog);
513 In practice, that means it's necessary to know 'maxSymbolValue' beforehand,
515 FSE_readNCount() will provide 'tableLog' and 'maxSymbolValue'.
830 #define FSE_CTABLE_SIZE_U32(maxTableLog, maxSymbolValue) (1 + (1<<(maxTableLog-1)) + ((maxSymbolValue+1)*2))
1073 static size_t FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) argument
1089 if (maxSymbolValue > FSE_MAX_SYMBOL_VALUE) return ERROR(maxSymbolValue_tooLarge);
1093 memset(tableDecode, 0, sizeof(FSE_DECODE_TYPE) * (maxSymbolValue+1) ); /* useless init, but keep static analyzer happy, and we don't need to performance optimize legacy decoders */
1095 for (s=0; s<=maxSymbolValue; s++)
1110 for (s=0; s<=maxSymbolValue;
1298 const unsigned maxSymbolValue = tableMask; local
1410 unsigned maxSymbolValue = FSE_MAX_SYMBOL_VALUE; local
[all...]
H A Dzstd_v05.c652 size_t FSEv05_buildDTable (FSEv05_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog);
1209 size_t FSEv05_buildDTable(FSEv05_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) argument
1225 if (maxSymbolValue > FSEv05_MAX_SYMBOL_VALUE) return ERROR(maxSymbolValue_tooLarge);
1229 memset(tableDecode, 0, sizeof(FSEv05_FUNCTION_TYPE) * (maxSymbolValue+1) ); /* useless init, but keep static analyzer happy, and we don't need to performance optimize legacy decoders */
1231 for (s=0; s<=maxSymbolValue; s++) {
1241 for (s=0; s<=maxSymbolValue; s++) {
1406 const unsigned maxSymbolValue = tableMask; local
1415 for (s=0; s<=maxSymbolValue; s++) {
1513 unsigned maxSymbolValue = FSEv05_MAX_SYMBOL_VALUE; local
1519 errorCode = FSEv05_readNCount (counting, &maxSymbolValue,
[all...]
H A Dzstd_v02.c602 Note that its size depends on 'tableLog' and 'maxSymbolValue' */
655 #define FSE_CTABLE_SIZE_U32(maxTableLog, maxSymbolValue) (1 + (1<<(maxTableLog-1)) + ((maxSymbolValue+1)*2))
1096 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog)
1112 if (maxSymbolValue > FSE_MAX_SYMBOL_VALUE) return ERROR(maxSymbolValue_tooLarge);
1117 for (s=0; s<=maxSymbolValue; s++)
1132 for (s=0; s<=maxSymbolValue; s++)
1318 const unsigned maxSymbolValue = tableMask; local
1327 for (s=0; s<=maxSymbolValue; s++)
1427 unsigned maxSymbolValue local
1095 FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) argument
[all...]

Completed in 455 milliseconds

12