Home
last modified time | relevance | path

Searched refs:tableDecode (Results 1 – 11 of 11) sorted by relevance

/freebsd/sys/contrib/zstd/lib/common/
H A Dfse_decompress.c61 FSE_DECODE_TYPE* const tableDecode = (FSE_DECODE_TYPE*) (tdPtr); in FSE_buildDTable_internal() local
82 tableDecode[highThreshold--].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable_internal()
129 tableDecode[uPosition].symbol = spread[s + u]; in FSE_buildDTable_internal()
142 tableDecode[position].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable_internal()
152 FSE_FUNCTION_TYPE const symbol = (FSE_FUNCTION_TYPE)(tableDecode[u].symbol); in FSE_buildDTable_internal()
154 tableDecode[u].nbBits = (BYTE) (tableLog - ZSTD_highbit32(nextState) ); in FSE_buildDTable_internal()
155 tableDecode[u].newState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); in FSE_buildDTable_internal()
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/
H A Dfse_decompress.c62 FSE_DECODE_TYPE* const tableDecode = (FSE_DECODE_TYPE*) (tdPtr); in FSE_buildDTable_internal() local
83 tableDecode[highThreshold--].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable_internal()
130 tableDecode[uPosition].symbol = spread[s + u]; in FSE_buildDTable_internal()
143 tableDecode[position].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable_internal()
153 FSE_FUNCTION_TYPE const symbol = (FSE_FUNCTION_TYPE)(tableDecode[u].symbol); in FSE_buildDTable_internal()
155 tableDecode[u].nbBits = (BYTE) (tableLog - ZSTD_highbit32(nextState) ); in FSE_buildDTable_internal()
156 tableDecode[u].newState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); in FSE_buildDTable_internal()
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress_block.c491 ZSTD_seqSymbol* const tableDecode = dt+1; in ZSTD_buildFSETable_body() local
513 tableDecode[highThreshold--].baseValue = s; in ZSTD_buildFSETable_body()
570 tableDecode[uPosition].baseValue = spread[s + u]; in ZSTD_buildFSETable_body()
584 tableDecode[position].baseValue = s; in ZSTD_buildFSETable_body()
595 U32 const symbol = tableDecode[u].baseValue; in ZSTD_buildFSETable_body()
597 tableDecode[u].nbBits = (BYTE) (tableLog - ZSTD_highbit32(nextState) ); in ZSTD_buildFSETable_body()
598 tableDecode[u].nextState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); in ZSTD_buildFSETable_body()
600 tableDecode[u].nbAdditionalBits = nbAdditionalBits[symbol]; in ZSTD_buildFSETable_body()
601 tableDecode[u].baseValue = baseValue[symbol]; in ZSTD_buildFSETable_body()
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress_block.c490 ZSTD_seqSymbol* const tableDecode = dt+1; in ZSTD_buildFSETable_body() local
512 tableDecode[highThreshold--].baseValue = s; in ZSTD_buildFSETable_body()
569 tableDecode[uPosition].baseValue = spread[s + u]; in ZSTD_buildFSETable_body()
583 tableDecode[position].baseValue = s; in ZSTD_buildFSETable_body()
594 U32 const symbol = tableDecode[u].baseValue; in ZSTD_buildFSETable_body()
596 tableDecode[u].nbBits = (BYTE) (tableLog - ZSTD_highbit32(nextState) ); in ZSTD_buildFSETable_body()
597 tableDecode[u].nextState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); in ZSTD_buildFSETable_body()
599 tableDecode[u].nbAdditionalBits = nbAdditionalBits[symbol]; in ZSTD_buildFSETable_body()
600 tableDecode[u].baseValue = baseValue[symbol]; in ZSTD_buildFSETable_body()
/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_v01.c362 …FSE_DECODE_TYPE* const tableDecode = (FSE_DECODE_TYPE*)(ptr) + 1; /* because dt is unsigned, 32-… in FSE_buildDTable() local
383 tableDecode[highThreshold--].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable()
399 tableDecode[position].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable()
412 FSE_FUNCTION_TYPE symbol = (FSE_FUNCTION_TYPE)(tableDecode[i].symbol); in FSE_buildDTable()
414 tableDecode[i].nbBits = (BYTE) (tableLog - FSE_highbit32 ((U32)nextState) ); in FSE_buildDTable()
415 tableDecode[i].newState = (U16) ( (nextState << tableDecode[i].nbBits) - tableSize); in FSE_buildDTable()
H A Dzstd_v04.c1021 FSE_DECODE_TYPE* const tableDecode = (FSE_DECODE_TYPE*) (tdPtr); in FSE_buildDTable() local
1037 …memset(tableDecode, 0, sizeof(FSE_DECODE_TYPE) * (maxSymbolValue+1) ); /* useless init, but keep… in FSE_buildDTable()
1043 tableDecode[highThreshold--].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable()
1059 tableDecode[position].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable()
1072 FSE_FUNCTION_TYPE symbol = (FSE_FUNCTION_TYPE)(tableDecode[i].symbol); in FSE_buildDTable()
1074 tableDecode[i].nbBits = (BYTE) (tableLog - BIT_highbit32 ((U32)nextState) ); in FSE_buildDTable()
1075 tableDecode[i].newState = (U16) ( (nextState << tableDecode[i].nbBits) - tableSize); in FSE_buildDTable()
H A Dzstd_v03.c1039 FSE_DECODE_TYPE* const tableDecode = (FSE_DECODE_TYPE*)ptr; in FSE_buildDTable() local
1060 tableDecode[highThreshold--].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable()
1076 tableDecode[position].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable()
1089 FSE_FUNCTION_TYPE symbol = (FSE_FUNCTION_TYPE)(tableDecode[i].symbol); in FSE_buildDTable()
1091 tableDecode[i].nbBits = (BYTE) (tableLog - BIT_highbit32 ((U32)nextState) ); in FSE_buildDTable()
1092 tableDecode[i].newState = (U16) ( (nextState << tableDecode[i].nbBits) - tableSize); in FSE_buildDTable()
H A Dzstd_v02.c1038 FSE_DECODE_TYPE* const tableDecode = (FSE_DECODE_TYPE*)ptr; in FSE_buildDTable() local
1060 tableDecode[highThreshold--].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable()
1076 tableDecode[position].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable()
1089 FSE_FUNCTION_TYPE symbol = (FSE_FUNCTION_TYPE)(tableDecode[i].symbol); in FSE_buildDTable()
1091 tableDecode[i].nbBits = (BYTE) (tableLog - BIT_highbit32 ((U32)nextState) ); in FSE_buildDTable()
1092 tableDecode[i].newState = (U16) ( (nextState << tableDecode[i].nbBits) - tableSize); in FSE_buildDTable()
H A Dzstd_v05.c1161 FSEv05_DECODE_TYPE* const tableDecode = (FSEv05_DECODE_TYPE*) (tdPtr); in FSEv05_buildDTable() local
1177 …memset(tableDecode, 0, sizeof(FSEv05_FUNCTION_TYPE) * (maxSymbolValue+1) ); /* useless init, but… in FSEv05_buildDTable()
1181 tableDecode[highThreshold--].symbol = (FSEv05_FUNCTION_TYPE)s; in FSEv05_buildDTable()
1192 tableDecode[position].symbol = (FSEv05_FUNCTION_TYPE)s; in FSEv05_buildDTable()
1203 FSEv05_FUNCTION_TYPE symbol = (FSEv05_FUNCTION_TYPE)(tableDecode[i].symbol); in FSEv05_buildDTable()
1205 tableDecode[i].nbBits = (BYTE) (tableLog - BITv05_highbit32 ((U32)nextState) ); in FSEv05_buildDTable()
1206 tableDecode[i].newState = (U16) ( (nextState << tableDecode[i].nbBits) - tableSize); in FSEv05_buildDTable()
H A Dzstd_v06.c1405 FSEv06_DECODE_TYPE* const tableDecode = (FSEv06_DECODE_TYPE*) (tdPtr); in FSEv06_buildDTable() local
1424 tableDecode[highThreshold--].symbol = (FSEv06_FUNCTION_TYPE)s; in FSEv06_buildDTable()
1440 tableDecode[position].symbol = (FSEv06_FUNCTION_TYPE)s; in FSEv06_buildDTable()
1451 FSEv06_FUNCTION_TYPE const symbol = (FSEv06_FUNCTION_TYPE)(tableDecode[u].symbol); in FSEv06_buildDTable()
1453 tableDecode[u].nbBits = (BYTE) (tableLog - BITv06_highbit32 ((U32)nextState) ); in FSEv06_buildDTable()
1454 tableDecode[u].newState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); in FSEv06_buildDTable()
H A Dzstd_v07.c1426 FSEv07_DECODE_TYPE* const tableDecode = (FSEv07_DECODE_TYPE*) (tdPtr); in FSEv07_buildDTable() local
1445 tableDecode[highThreshold--].symbol = (FSEv07_FUNCTION_TYPE)s; in FSEv07_buildDTable()
1461 tableDecode[position].symbol = (FSEv07_FUNCTION_TYPE)s; in FSEv07_buildDTable()
1472 FSEv07_FUNCTION_TYPE const symbol = (FSEv07_FUNCTION_TYPE)(tableDecode[u].symbol); in FSEv07_buildDTable()
1474 tableDecode[u].nbBits = (BYTE) (tableLog - BITv07_highbit32 ((U32)nextState) ); in FSEv07_buildDTable()
1475 tableDecode[u].newState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); in FSEv07_buildDTable()