Home
last modified time | relevance | path

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

/freebsd-14.2/sys/contrib/openzfs/module/zstd/lib/common/
H A Dfse.h581 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); in FSE_initDState()
583 DStatePtr->table = dt + 1; in FSE_initDState()
586 MEM_STATIC BYTE FSE_peekSymbol(const FSE_DState_t* DStatePtr) in FSE_peekSymbol() argument
588 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_peekSymbol()
594 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_updateState()
597 DStatePtr->state = DInfo.newState + lowBits; in FSE_updateState()
602 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
607 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
615 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
620 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
[all …]
/freebsd-14.2/sys/contrib/zstd/lib/common/
H A Dfse.h607 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); in FSE_initDState()
609 DStatePtr->table = dt + 1; in FSE_initDState()
612 MEM_STATIC BYTE FSE_peekSymbol(const FSE_DState_t* DStatePtr) in FSE_peekSymbol() argument
614 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_peekSymbol()
620 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_updateState()
623 DStatePtr->state = DInfo.newState + lowBits; in FSE_updateState()
628 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
633 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
641 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
646 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
[all …]
/freebsd-14.2/sys/contrib/zstd/lib/legacy/
H A Dzstd_v01.c769 static void FSE_initDState(FSE_DState_t* DStatePtr, FSE_DStream_t* bitD, const FSE_DTable* dt) in FSE_initDState() argument
773 DStatePtr->state = FSE_readBits(bitD, DTableH->tableLog); in FSE_initDState()
775 DStatePtr->table = dt + 1; in FSE_initDState()
778 static BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, FSE_DStream_t* bitD) in FSE_decodeSymbol() argument
780 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
785 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
789 static BYTE FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, FSE_DStream_t* bitD) in FSE_decodeSymbolFast() argument
791 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
796 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
808 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr) in FSE_endOfDState() argument
[all …]
H A Dzstd_v03.c685 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr);
717 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog); in FSE_initDState()
719 DStatePtr->table = dt + 1; in FSE_initDState()
722 MEM_STATIC BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbol() argument
724 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
729 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
733 MEM_STATIC BYTE FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbolFast() argument
735 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
740 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
744 MEM_STATIC unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr) in FSE_endOfDState() argument
[all …]
H A Dzstd_v06.c1112 DStatePtr->state = BITv06_readBits(bitD, DTableH->tableLog); in FSEv06_initDState()
1114 DStatePtr->table = dt + 1; in FSEv06_initDState()
1117 MEM_STATIC BYTE FSEv06_peekSymbol(const FSEv06_DState_t* DStatePtr) in FSEv06_peekSymbol() argument
1119 FSEv06_decode_t const DInfo = ((const FSEv06_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv06_peekSymbol()
1123 MEM_STATIC void FSEv06_updateState(FSEv06_DState_t* DStatePtr, BITv06_DStream_t* bitD) in FSEv06_updateState() argument
1125 FSEv06_decode_t const DInfo = ((const FSEv06_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv06_updateState()
1128 DStatePtr->state = DInfo.newState + lowBits; in FSEv06_updateState()
1133 FSEv06_decode_t const DInfo = ((const FSEv06_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv06_decodeSymbol()
1138 DStatePtr->state = DInfo.newState + lowBits; in FSEv06_decodeSymbol()
1146 FSEv06_decode_t const DInfo = ((const FSEv06_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv06_decodeSymbolFast()
[all …]
H A Dzstd_v04.c859 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr);
890 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog); in FSE_initDState()
892 DStatePtr->table = dt + 1; in FSE_initDState()
895 MEM_STATIC BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbol() argument
897 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
902 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
906 MEM_STATIC BYTE FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbolFast() argument
908 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
913 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
917 MEM_STATIC unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr) in FSE_endOfDState() argument
[all …]
H A Dzstd_v02.c683 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr);
715 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog); in FSE_initDState()
717 DStatePtr->table = dt + 1; in FSE_initDState()
720 MEM_STATIC BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbol() argument
722 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
727 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
731 MEM_STATIC BYTE FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbolFast() argument
733 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
738 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
742 MEM_STATIC unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr) in FSE_endOfDState() argument
[all …]
H A Dzstd_v05.c974 static unsigned FSEv05_endOfDState(const FSEv05_DState_t* DStatePtr);
1006 DStatePtr->state = BITv05_readBits(bitD, DTableH->tableLog); in FSEv05_initDState()
1008 DStatePtr->table = dt + 1; in FSEv05_initDState()
1011 MEM_STATIC BYTE FSEv05_peakSymbol(FSEv05_DState_t* DStatePtr) in FSEv05_peakSymbol() argument
1013 const FSEv05_decode_t DInfo = ((const FSEv05_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv05_peakSymbol()
1019 const FSEv05_decode_t DInfo = ((const FSEv05_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv05_decodeSymbol()
1024 DStatePtr->state = DInfo.newState + lowBits; in FSEv05_decodeSymbol()
1030 const FSEv05_decode_t DInfo = ((const FSEv05_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv05_decodeSymbolFast()
1035 DStatePtr->state = DInfo.newState + lowBits; in FSEv05_decodeSymbolFast()
1039 MEM_STATIC unsigned FSEv05_endOfDState(const FSEv05_DState_t* DStatePtr) in FSEv05_endOfDState() argument
[all …]
H A Dzstd_v07.c876 DStatePtr->state = BITv07_readBits(bitD, DTableH->tableLog); in FSEv07_initDState()
878 DStatePtr->table = dt + 1; in FSEv07_initDState()
881 MEM_STATIC BYTE FSEv07_peekSymbol(const FSEv07_DState_t* DStatePtr) in FSEv07_peekSymbol() argument
883 FSEv07_decode_t const DInfo = ((const FSEv07_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv07_peekSymbol()
887 MEM_STATIC void FSEv07_updateState(FSEv07_DState_t* DStatePtr, BITv07_DStream_t* bitD) in FSEv07_updateState() argument
889 FSEv07_decode_t const DInfo = ((const FSEv07_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv07_updateState()
892 DStatePtr->state = DInfo.newState + lowBits; in FSEv07_updateState()
897 FSEv07_decode_t const DInfo = ((const FSEv07_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv07_decodeSymbol()
902 DStatePtr->state = DInfo.newState + lowBits; in FSEv07_decodeSymbol()
910 FSEv07_decode_t const DInfo = ((const FSEv07_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv07_decodeSymbolFast()
[all …]
/freebsd-14.2/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress_block.c792 ZSTD_initFseState(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD, const ZSTD_seqSymbol* dt) in ZSTD_initFseState() argument
796 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); in ZSTD_initFseState()
798 (U32)DStatePtr->state, DTableH->tableLog); in ZSTD_initFseState()
800 DStatePtr->table = dt + 1; in ZSTD_initFseState()
804 ZSTD_updateFseState(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD) in ZSTD_updateFseState() argument
806 ZSTD_seqSymbol const DInfo = DStatePtr->table[DStatePtr->state]; in ZSTD_updateFseState()
809 DStatePtr->state = DInfo.nextState + lowBits; in ZSTD_updateFseState()
813 ZSTD_updateFseStateWithDInfo(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD, ZSTD_seqSymbol const DI… in ZSTD_updateFseStateWithDInfo() argument
817 DStatePtr->state = DInfo.nextState + lowBits; in ZSTD_updateFseStateWithDInfo()
/freebsd-14.2/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress_block.c1138 ZSTD_initFseState(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD, const ZSTD_seqSymbol* dt) in ZSTD_initFseState() argument
1142 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); in ZSTD_initFseState()
1144 (U32)DStatePtr->state, DTableH->tableLog); in ZSTD_initFseState()
1146 DStatePtr->table = dt + 1; in ZSTD_initFseState()
1150 ZSTD_updateFseStateWithDInfo(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD, U16 nextState, U32 nbBi… in ZSTD_updateFseStateWithDInfo() argument
1153 DStatePtr->state = nextState + lowBits; in ZSTD_updateFseStateWithDInfo()