Home
last modified time | relevance | path

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

/f-stack/freebsd/contrib/zstd/lib/common/
H A Dfse.h606 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); in FSE_initDState()
608 DStatePtr->table = dt + 1; in FSE_initDState()
611 MEM_STATIC BYTE FSE_peekSymbol(const FSE_DState_t* DStatePtr) in FSE_peekSymbol() argument
613 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_peekSymbol()
619 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_updateState()
622 DStatePtr->state = DInfo.newState + lowBits; in FSE_updateState()
627 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
632 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
640 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
645 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
[all …]
/f-stack/freebsd/contrib/zstd/lib/legacy/
H A Dzstd_v01.c773 static void FSE_initDState(FSE_DState_t* DStatePtr, FSE_DStream_t* bitD, const FSE_DTable* dt) in FSE_initDState() argument
777 DStatePtr->state = FSE_readBits(bitD, DTableH->tableLog); in FSE_initDState()
779 DStatePtr->table = dt + 1; in FSE_initDState()
782 static BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, FSE_DStream_t* bitD) in FSE_decodeSymbol() argument
784 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
789 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
793 static BYTE FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, FSE_DStream_t* bitD) in FSE_decodeSymbolFast() argument
795 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
800 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
812 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr) in FSE_endOfDState() argument
[all …]
H A Dzstd_v03.c689 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr);
721 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog); in FSE_initDState()
723 DStatePtr->table = dt + 1; in FSE_initDState()
726 MEM_STATIC BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbol() argument
728 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
733 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
737 MEM_STATIC BYTE FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbolFast() argument
739 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
744 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
748 MEM_STATIC unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr) in FSE_endOfDState() argument
[all …]
H A Dzstd_v06.c1116 DStatePtr->state = BITv06_readBits(bitD, DTableH->tableLog); in FSEv06_initDState()
1118 DStatePtr->table = dt + 1; in FSEv06_initDState()
1121 MEM_STATIC BYTE FSEv06_peekSymbol(const FSEv06_DState_t* DStatePtr) in FSEv06_peekSymbol() argument
1123 FSEv06_decode_t const DInfo = ((const FSEv06_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv06_peekSymbol()
1127 MEM_STATIC void FSEv06_updateState(FSEv06_DState_t* DStatePtr, BITv06_DStream_t* bitD) in FSEv06_updateState() argument
1129 FSEv06_decode_t const DInfo = ((const FSEv06_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv06_updateState()
1132 DStatePtr->state = DInfo.newState + lowBits; in FSEv06_updateState()
1137 FSEv06_decode_t const DInfo = ((const FSEv06_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv06_decodeSymbol()
1142 DStatePtr->state = DInfo.newState + lowBits; in FSEv06_decodeSymbol()
1150 FSEv06_decode_t const DInfo = ((const FSEv06_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv06_decodeSymbolFast()
[all …]
H A Dzstd_v04.c863 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr);
894 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog); in FSE_initDState()
896 DStatePtr->table = dt + 1; in FSE_initDState()
899 MEM_STATIC BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbol() argument
901 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
906 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
910 MEM_STATIC BYTE FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbolFast() argument
912 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
917 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
921 MEM_STATIC unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr) in FSE_endOfDState() argument
[all …]
H A Dzstd_v05.c978 static unsigned FSEv05_endOfDState(const FSEv05_DState_t* DStatePtr);
1010 DStatePtr->state = BITv05_readBits(bitD, DTableH->tableLog); in FSEv05_initDState()
1012 DStatePtr->table = dt + 1; in FSEv05_initDState()
1015 MEM_STATIC BYTE FSEv05_peakSymbol(FSEv05_DState_t* DStatePtr) in FSEv05_peakSymbol() argument
1017 const FSEv05_decode_t DInfo = ((const FSEv05_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv05_peakSymbol()
1023 const FSEv05_decode_t DInfo = ((const FSEv05_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv05_decodeSymbol()
1028 DStatePtr->state = DInfo.newState + lowBits; in FSEv05_decodeSymbol()
1034 const FSEv05_decode_t DInfo = ((const FSEv05_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv05_decodeSymbolFast()
1039 DStatePtr->state = DInfo.newState + lowBits; in FSEv05_decodeSymbolFast()
1043 MEM_STATIC unsigned FSEv05_endOfDState(const FSEv05_DState_t* DStatePtr) in FSEv05_endOfDState() argument
[all …]
H A Dzstd_v02.c687 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr);
719 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog); in FSE_initDState()
721 DStatePtr->table = dt + 1; in FSE_initDState()
724 MEM_STATIC BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbol() argument
726 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
731 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
735 MEM_STATIC BYTE FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbolFast() argument
737 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
742 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
746 MEM_STATIC unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr) in FSE_endOfDState() argument
[all …]
H A Dzstd_v07.c880 DStatePtr->state = BITv07_readBits(bitD, DTableH->tableLog); in FSEv07_initDState()
882 DStatePtr->table = dt + 1; in FSEv07_initDState()
885 MEM_STATIC BYTE FSEv07_peekSymbol(const FSEv07_DState_t* DStatePtr) in FSEv07_peekSymbol() argument
887 FSEv07_decode_t const DInfo = ((const FSEv07_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv07_peekSymbol()
891 MEM_STATIC void FSEv07_updateState(FSEv07_DState_t* DStatePtr, BITv07_DStream_t* bitD) in FSEv07_updateState() argument
893 FSEv07_decode_t const DInfo = ((const FSEv07_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv07_updateState()
896 DStatePtr->state = DInfo.newState + lowBits; in FSEv07_updateState()
901 FSEv07_decode_t const DInfo = ((const FSEv07_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv07_decodeSymbol()
906 DStatePtr->state = DInfo.newState + lowBits; in FSEv07_decodeSymbol()
914 FSEv07_decode_t const DInfo = ((const FSEv07_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv07_decodeSymbolFast()
[all …]
/f-stack/freebsd/contrib/zstd/lib/decompress/
H A Dzstd_decompress_block.c900 ZSTD_initFseState(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD, const ZSTD_seqSymbol* dt) in ZSTD_initFseState() argument
904 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); in ZSTD_initFseState()
906 (U32)DStatePtr->state, DTableH->tableLog); in ZSTD_initFseState()
908 DStatePtr->table = dt + 1; in ZSTD_initFseState()
912 ZSTD_updateFseState(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD) in ZSTD_updateFseState() argument
914 ZSTD_seqSymbol const DInfo = DStatePtr->table[DStatePtr->state]; in ZSTD_updateFseState()
917 DStatePtr->state = DInfo.nextState + lowBits; in ZSTD_updateFseState()
921 ZSTD_updateFseStateWithDInfo(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD, ZSTD_seqSymbol const DI… in ZSTD_updateFseStateWithDInfo() argument
925 DStatePtr->state = DInfo.nextState + lowBits; in ZSTD_updateFseStateWithDInfo()
/f-stack/freebsd/contrib/openzfs/module/zstd/lib/
H A Dzstd.c2051 DStatePtr->table = dt + 1; in FSE_initDState()
2056 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_peekSymbol()
2062 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_updateState()
2065 DStatePtr->state = DInfo.newState + lowBits; in FSE_updateState()
2070 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
2075 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
2083 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
2088 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
2094 return DStatePtr->state == 0; in FSE_endOfDState()
27197 DStatePtr->table = dt + 1; in ZSTD_initFseState()
[all …]