Home
last modified time | relevance | path

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

/freebsd/sys/contrib/openzfs/module/zstd/lib/common/
H A Dfse.h358 static void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt);
360 static unsigned char FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD);
362 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr);
417 static unsigned char FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD);
518 MEM_STATIC void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt) in FSE_initDState() argument
522 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); in FSE_initDState()
524 DStatePtr->table = dt + 1; in FSE_initDState()
527 MEM_STATIC BYTE FSE_peekSymbol(const FSE_DState_t* DStatePtr) in FSE_peekSymbol() argument
529 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_peekSymbol()
533 MEM_STATIC void FSE_updateState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_updateState() argument
[all …]
/freebsd/sys/contrib/zstd/lib/common/
H A Dfse.h357 static void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt);
359 static unsigned char FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD);
361 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr);
416 static unsigned char FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD);
517 MEM_STATIC void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt) in FSE_initDState() argument
521 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); in FSE_initDState()
523 DStatePtr->table = dt + 1; in FSE_initDState()
526 MEM_STATIC BYTE FSE_peekSymbol(const FSE_DState_t* DStatePtr) in FSE_peekSymbol() argument
528 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_peekSymbol()
532 MEM_STATIC void FSE_updateState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_updateState() argument
[all …]
/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_v01.c731 static void FSE_initDState(FSE_DState_t* DStatePtr, FSE_DStream_t* bitD, const FSE_DTable* dt) in FSE_initDState() argument
735 DStatePtr->state = FSE_readBits(bitD, DTableH->tableLog); in FSE_initDState()
737 DStatePtr->table = dt + 1; in FSE_initDState()
740 static BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, FSE_DStream_t* bitD) in FSE_decodeSymbol() argument
742 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
747 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
751 static BYTE FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, FSE_DStream_t* bitD) in FSE_decodeSymbolFast() argument
753 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
758 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
770 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr) in FSE_endOfDState() argument
[all …]
H A Dzstd_v03.c619 static void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt);
621 static unsigned char FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD);
623 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr);
629 static unsigned char FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD);
651 MEM_STATIC void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt) in FSE_initDState() argument
655 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog); in FSE_initDState()
657 DStatePtr->table = dt + 1; in FSE_initDState()
660 MEM_STATIC BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbol() argument
662 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
667 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
[all …]
H A Dzstd_v06.c1021 static void FSEv06_initDState(FSEv06_DState_t* DStatePtr, BITv06_DStream_t* bitD, const FSEv06_…
1023 static unsigned char FSEv06_decodeSymbol(FSEv06_DState_t* DStatePtr, BITv06_DStream_t* bitD);
1029 static unsigned char FSEv06_decodeSymbolFast(FSEv06_DState_t* DStatePtr, BITv06_DStream_t* bitD);
1052 MEM_STATIC void FSEv06_initDState(FSEv06_DState_t* DStatePtr, BITv06_DStream_t* bitD, const FSEv06_… in FSEv06_initDState() argument
1056 DStatePtr->state = BITv06_readBits(bitD, DTableH->tableLog); in FSEv06_initDState()
1058 DStatePtr->table = dt + 1; in FSEv06_initDState()
1061 MEM_STATIC BYTE FSEv06_peekSymbol(const FSEv06_DState_t* DStatePtr) in FSEv06_peekSymbol() argument
1063 FSEv06_decode_t const DInfo = ((const FSEv06_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv06_peekSymbol()
1067 MEM_STATIC void FSEv06_updateState(FSEv06_DState_t* DStatePtr, BITv06_DStream_t* bitD) in FSEv06_updateState() argument
1069 FSEv06_decode_t const DInfo = ((const FSEv06_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv06_updateState()
[all …]
H A Dzstd_v02.c618 static void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt);
620 static unsigned char FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD);
622 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr);
628 static unsigned char FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD);
650 MEM_STATIC void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt) in FSE_initDState() argument
654 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog); in FSE_initDState()
656 DStatePtr->table = dt + 1; in FSE_initDState()
659 MEM_STATIC BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbol() argument
661 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
666 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
[all …]
H A Dzstd_v04.c799 static void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt);
801 static unsigned char FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD);
803 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr);
809 static unsigned char FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD);
830 MEM_STATIC void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt) in FSE_initDState() argument
834 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog); in FSE_initDState()
836 DStatePtr->table = dt + 1; in FSE_initDState()
839 MEM_STATIC BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbol() argument
841 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
846 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
[all …]
H A Dzstd_v05.c918 static void FSEv05_initDState(FSEv05_DState_t* DStatePtr, BITv05_DStream_t* bitD, const FSEv05_…
920 static unsigned char FSEv05_decodeSymbol(FSEv05_DState_t* DStatePtr, BITv05_DStream_t* bitD);
922 static unsigned FSEv05_endOfDState(const FSEv05_DState_t* DStatePtr);
929 static unsigned char FSEv05_decodeSymbolFast(FSEv05_DState_t* DStatePtr, BITv05_DStream_t* bitD);
950 MEM_STATIC void FSEv05_initDState(FSEv05_DState_t* DStatePtr, BITv05_DStream_t* bitD, const FSEv05_… in FSEv05_initDState() argument
954 DStatePtr->state = BITv05_readBits(bitD, DTableH->tableLog); in FSEv05_initDState()
956 DStatePtr->table = dt + 1; in FSEv05_initDState()
959 MEM_STATIC BYTE FSEv05_peakSymbol(FSEv05_DState_t* DStatePtr) in FSEv05_peakSymbol() argument
961 const FSEv05_decode_t DInfo = ((const FSEv05_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv05_peakSymbol()
965 MEM_STATIC BYTE FSEv05_decodeSymbol(FSEv05_DState_t* DStatePtr, BITv05_DStream_t* bitD) in FSEv05_decodeSymbol() argument
[all …]
H A Dzstd_v07.c790 static void FSEv07_initDState(FSEv07_DState_t* DStatePtr, BITv07_DStream_t* bitD, const FSEv07_…
792 static unsigned char FSEv07_decodeSymbol(FSEv07_DState_t* DStatePtr, BITv07_DStream_t* bitD);
799 static unsigned char FSEv07_decodeSymbolFast(FSEv07_DState_t* DStatePtr, BITv07_DStream_t* bitD);
817 MEM_STATIC void FSEv07_initDState(FSEv07_DState_t* DStatePtr, BITv07_DStream_t* bitD, const FSEv07_… in FSEv07_initDState() argument
821 DStatePtr->state = BITv07_readBits(bitD, DTableH->tableLog); in FSEv07_initDState()
823 DStatePtr->table = dt + 1; in FSEv07_initDState()
826 MEM_STATIC BYTE FSEv07_peekSymbol(const FSEv07_DState_t* DStatePtr) in FSEv07_peekSymbol() argument
828 FSEv07_decode_t const DInfo = ((const FSEv07_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv07_peekSymbol()
832 MEM_STATIC void FSEv07_updateState(FSEv07_DState_t* DStatePtr, BITv07_DStream_t* bitD) in FSEv07_updateState() argument
834 FSEv07_decode_t const DInfo = ((const FSEv07_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv07_updateState()
[all …]
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress_block.c1193 ZSTD_initFseState(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD, const ZSTD_seqSymbol* dt) in ZSTD_initFseState() argument
1197 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); in ZSTD_initFseState()
1199 (U32)DStatePtr->state, DTableH->tableLog); in ZSTD_initFseState()
1201 DStatePtr->table = dt + 1; in ZSTD_initFseState()
1205 ZSTD_updateFseStateWithDInfo(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD, U16 nextState, U32 nbBi… in ZSTD_updateFseStateWithDInfo() argument
1208 DStatePtr->state = nextState + lowBits; in ZSTD_updateFseStateWithDInfo()
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress_block.c1192 ZSTD_initFseState(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD, const ZSTD_seqSymbol* dt) in ZSTD_initFseState() argument
1196 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); in ZSTD_initFseState()
1198 (U32)DStatePtr->state, DTableH->tableLog); in ZSTD_initFseState()
1200 DStatePtr->table = dt + 1; in ZSTD_initFseState()
1204 ZSTD_updateFseStateWithDInfo(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD, U16 nextState, U32 nbBi… in ZSTD_updateFseStateWithDInfo() argument
1207 DStatePtr->state = nextState + lowBits; in ZSTD_updateFseStateWithDInfo()