Home
last modified time | relevance | path

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

/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() local
81 tableDecode[highThreshold--].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable()
97 tableDecode[position].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable()
107 FSE_FUNCTION_TYPE const symbol = (FSE_FUNCTION_TYPE)(tableDecode[u].symbol); in FSE_buildDTable()
109 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); in FSE_buildDTable()
110 tableDecode[u].newState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); in FSE_buildDTable()
/freebsd/sys/contrib/zstd/lib/common/
H A Dfse_decompress.c74 FSE_DECODE_TYPE* const tableDecode = (FSE_DECODE_TYPE*) (tdPtr); in FSE_buildDTable_internal() local
95 tableDecode[highThreshold--].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable_internal()
144 tableDecode[uPosition].symbol = spread[s + u]; in FSE_buildDTable_internal()
157 tableDecode[position].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable_internal()
167 FSE_FUNCTION_TYPE const symbol = (FSE_FUNCTION_TYPE)(tableDecode[u].symbol); in FSE_buildDTable_internal()
169 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); in FSE_buildDTable_internal()
170 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.c373 ZSTD_seqSymbol* const tableDecode = dt+1; in ZSTD_buildFSETable() local
392 tableDecode[highThreshold--].baseValue = s; in ZSTD_buildFSETable()
409 tableDecode[position].baseValue = s; in ZSTD_buildFSETable()
419 U32 const symbol = tableDecode[u].baseValue; in ZSTD_buildFSETable()
421 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); in ZSTD_buildFSETable()
422 tableDecode[u].nextState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); in ZSTD_buildFSETable()
424 tableDecode[u].nbAdditionalBits = (BYTE)nbAdditionalBits[symbol]; in ZSTD_buildFSETable()
425 tableDecode[u].baseValue = baseValue[symbol]; in ZSTD_buildFSETable()
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress_block.c449 ZSTD_seqSymbol* const tableDecode = dt+1; in ZSTD_buildFSETable_body() local
471 tableDecode[highThreshold--].baseValue = s; in ZSTD_buildFSETable_body()
527 tableDecode[uPosition].baseValue = spread[s + u]; in ZSTD_buildFSETable_body()
541 tableDecode[position].baseValue = s; in ZSTD_buildFSETable_body()
552 U32 const symbol = tableDecode[u].baseValue; in ZSTD_buildFSETable_body()
554 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); in ZSTD_buildFSETable_body()
555 tableDecode[u].nextState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); in ZSTD_buildFSETable_body()
557 tableDecode[u].nbAdditionalBits = nbAdditionalBits[symbol]; in ZSTD_buildFSETable_body()
558 tableDecode[u].baseValue = baseValue[symbol]; in ZSTD_buildFSETable_body()
/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_v01.c400 …FSE_DECODE_TYPE* const tableDecode = (FSE_DECODE_TYPE*)(ptr) + 1; /* because dt is unsigned, 32-… in FSE_buildDTable() local
421 tableDecode[highThreshold--].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable()
437 tableDecode[position].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable()
450 FSE_FUNCTION_TYPE symbol = (FSE_FUNCTION_TYPE)(tableDecode[i].symbol); in FSE_buildDTable()
452 tableDecode[i].nbBits = (BYTE) (tableLog - FSE_highbit32 ((U32)nextState) ); in FSE_buildDTable()
453 tableDecode[i].newState = (U16) ( (nextState << tableDecode[i].nbBits) - tableSize); in FSE_buildDTable()
H A Dzstd_v04.c1077 FSE_DECODE_TYPE* const tableDecode = (FSE_DECODE_TYPE*) (tdPtr); in FSE_buildDTable() local
1093 …memset(tableDecode, 0, sizeof(FSE_DECODE_TYPE) * (maxSymbolValue+1) ); /* useless init, but keep… in FSE_buildDTable()
1099 tableDecode[highThreshold--].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable()
1115 tableDecode[position].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable()
1128 FSE_FUNCTION_TYPE symbol = (FSE_FUNCTION_TYPE)(tableDecode[i].symbol); in FSE_buildDTable()
1130 tableDecode[i].nbBits = (BYTE) (tableLog - BIT_highbit32 ((U32)nextState) ); in FSE_buildDTable()
1131 tableDecode[i].newState = (U16) ( (nextState << tableDecode[i].nbBits) - tableSize); in FSE_buildDTable()
H A Dzstd_v03.c1101 FSE_DECODE_TYPE* const tableDecode = (FSE_DECODE_TYPE*)ptr; in FSE_buildDTable() local
1122 tableDecode[highThreshold--].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable()
1138 tableDecode[position].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable()
1151 FSE_FUNCTION_TYPE symbol = (FSE_FUNCTION_TYPE)(tableDecode[i].symbol); in FSE_buildDTable()
1153 tableDecode[i].nbBits = (BYTE) (tableLog - BIT_highbit32 ((U32)nextState) ); in FSE_buildDTable()
1154 tableDecode[i].newState = (U16) ( (nextState << tableDecode[i].nbBits) - tableSize); in FSE_buildDTable()
H A Dzstd_v02.c1099 FSE_DECODE_TYPE* const tableDecode = (FSE_DECODE_TYPE*)ptr; in FSE_buildDTable() local
1121 tableDecode[highThreshold--].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable()
1137 tableDecode[position].symbol = (FSE_FUNCTION_TYPE)s; in FSE_buildDTable()
1150 FSE_FUNCTION_TYPE symbol = (FSE_FUNCTION_TYPE)(tableDecode[i].symbol); in FSE_buildDTable()
1152 tableDecode[i].nbBits = (BYTE) (tableLog - BIT_highbit32 ((U32)nextState) ); in FSE_buildDTable()
1153 tableDecode[i].newState = (U16) ( (nextState << tableDecode[i].nbBits) - tableSize); in FSE_buildDTable()
H A Dzstd_v05.c1213 FSEv05_DECODE_TYPE* const tableDecode = (FSEv05_DECODE_TYPE*) (tdPtr); in FSEv05_buildDTable() local
1229 …memset(tableDecode, 0, sizeof(FSEv05_FUNCTION_TYPE) * (maxSymbolValue+1) ); /* useless init, but… in FSEv05_buildDTable()
1233 tableDecode[highThreshold--].symbol = (FSEv05_FUNCTION_TYPE)s; in FSEv05_buildDTable()
1244 tableDecode[position].symbol = (FSEv05_FUNCTION_TYPE)s; in FSEv05_buildDTable()
1255 FSEv05_FUNCTION_TYPE symbol = (FSEv05_FUNCTION_TYPE)(tableDecode[i].symbol); in FSEv05_buildDTable()
1257 tableDecode[i].nbBits = (BYTE) (tableLog - BITv05_highbit32 ((U32)nextState) ); in FSEv05_buildDTable()
1258 tableDecode[i].newState = (U16) ( (nextState << tableDecode[i].nbBits) - tableSize); in FSEv05_buildDTable()
H A Dzstd_v06.c1461 FSEv06_DECODE_TYPE* const tableDecode = (FSEv06_DECODE_TYPE*) (tdPtr); in FSEv06_buildDTable() local
1480 tableDecode[highThreshold--].symbol = (FSEv06_FUNCTION_TYPE)s; in FSEv06_buildDTable()
1496 tableDecode[position].symbol = (FSEv06_FUNCTION_TYPE)s; in FSEv06_buildDTable()
1507 FSEv06_FUNCTION_TYPE const symbol = (FSEv06_FUNCTION_TYPE)(tableDecode[u].symbol); in FSEv06_buildDTable()
1509 tableDecode[u].nbBits = (BYTE) (tableLog - BITv06_highbit32 ((U32)nextState) ); in FSEv06_buildDTable()
1510 tableDecode[u].newState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); in FSEv06_buildDTable()
H A Dzstd_v07.c1481 FSEv07_DECODE_TYPE* const tableDecode = (FSEv07_DECODE_TYPE*) (tdPtr); in FSEv07_buildDTable() local
1500 tableDecode[highThreshold--].symbol = (FSEv07_FUNCTION_TYPE)s; in FSEv07_buildDTable()
1516 tableDecode[position].symbol = (FSEv07_FUNCTION_TYPE)s; in FSEv07_buildDTable()
1527 FSEv07_FUNCTION_TYPE const symbol = (FSEv07_FUNCTION_TYPE)(tableDecode[u].symbol); in FSEv07_buildDTable()
1529 tableDecode[u].nbBits = (BYTE) (tableLog - BITv07_highbit32 ((U32)nextState) ); in FSEv07_buildDTable()
1530 tableDecode[u].newState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); in FSEv07_buildDTable()