Home
last modified time | relevance | path

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

/freebsd-12.1/sys/contrib/zstd/lib/common/
H A Dfse.h597 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); in FSE_initDState()
599 DStatePtr->table = dt + 1; in FSE_initDState()
602 MEM_STATIC BYTE FSE_peekSymbol(const FSE_DState_t* DStatePtr) in FSE_peekSymbol() argument
604 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_peekSymbol()
610 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_updateState()
613 DStatePtr->state = DInfo.newState + lowBits; in FSE_updateState()
618 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
623 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
631 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
636 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
[all …]
/freebsd-12.1/sys/contrib/zstd/lib/legacy/
H A Dzstd_v01.c767 static void FSE_initDState(FSE_DState_t* DStatePtr, FSE_DStream_t* bitD, const FSE_DTable* dt) in FSE_initDState() argument
771 DStatePtr->state = FSE_readBits(bitD, DTableH->tableLog); in FSE_initDState()
773 DStatePtr->table = dt + 1; in FSE_initDState()
776 static BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, FSE_DStream_t* bitD) in FSE_decodeSymbol() argument
778 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
783 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
787 static BYTE FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, FSE_DStream_t* bitD) in FSE_decodeSymbolFast() argument
789 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
794 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
806 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr) in FSE_endOfDState() argument
[all …]
H A Dzstd_v03.c674 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr);
706 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog); in FSE_initDState()
708 DStatePtr->table = dt + 1; in FSE_initDState()
711 MEM_STATIC BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbol() argument
713 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
718 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
722 MEM_STATIC BYTE FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbolFast() argument
724 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
729 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
733 MEM_STATIC unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr) in FSE_endOfDState() argument
[all …]
H A Dzstd_v06.c1110 DStatePtr->state = BITv06_readBits(bitD, DTableH->tableLog); in FSEv06_initDState()
1112 DStatePtr->table = dt + 1; in FSEv06_initDState()
1115 MEM_STATIC BYTE FSEv06_peekSymbol(const FSEv06_DState_t* DStatePtr) in FSEv06_peekSymbol() argument
1117 FSEv06_decode_t const DInfo = ((const FSEv06_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv06_peekSymbol()
1121 MEM_STATIC void FSEv06_updateState(FSEv06_DState_t* DStatePtr, BITv06_DStream_t* bitD) in FSEv06_updateState() argument
1123 FSEv06_decode_t const DInfo = ((const FSEv06_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv06_updateState()
1126 DStatePtr->state = DInfo.newState + lowBits; in FSEv06_updateState()
1131 FSEv06_decode_t const DInfo = ((const FSEv06_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv06_decodeSymbol()
1136 DStatePtr->state = DInfo.newState + lowBits; in FSEv06_decodeSymbol()
1144 FSEv06_decode_t const DInfo = ((const FSEv06_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv06_decodeSymbolFast()
[all …]
H A Dzstd_v02.c672 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr);
704 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog); in FSE_initDState()
706 DStatePtr->table = dt + 1; in FSE_initDState()
709 MEM_STATIC BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbol() argument
711 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
716 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
720 MEM_STATIC BYTE FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbolFast() argument
722 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
727 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
731 MEM_STATIC unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr) in FSE_endOfDState() argument
[all …]
H A Dzstd_v05.c972 static unsigned FSEv05_endOfDState(const FSEv05_DState_t* DStatePtr);
1004 DStatePtr->state = BITv05_readBits(bitD, DTableH->tableLog); in FSEv05_initDState()
1006 DStatePtr->table = dt + 1; in FSEv05_initDState()
1009 MEM_STATIC BYTE FSEv05_peakSymbol(FSEv05_DState_t* DStatePtr) in FSEv05_peakSymbol() argument
1011 const FSEv05_decode_t DInfo = ((const FSEv05_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv05_peakSymbol()
1017 const FSEv05_decode_t DInfo = ((const FSEv05_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv05_decodeSymbol()
1022 DStatePtr->state = DInfo.newState + lowBits; in FSEv05_decodeSymbol()
1028 const FSEv05_decode_t DInfo = ((const FSEv05_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSEv05_decodeSymbolFast()
1033 DStatePtr->state = DInfo.newState + lowBits; in FSEv05_decodeSymbolFast()
1037 MEM_STATIC unsigned FSEv05_endOfDState(const FSEv05_DState_t* DStatePtr) in FSEv05_endOfDState() argument
[all …]
H A Dzstd_v04.c911 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr);
942 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog); in FSE_initDState()
944 DStatePtr->table = dt + 1; in FSE_initDState()
947 MEM_STATIC BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbol() argument
949 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
954 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
958 MEM_STATIC BYTE FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbolFast() argument
960 const FSE_decode_t DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
965 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
969 MEM_STATIC unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr) in FSE_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-12.1/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c1235 ZSTD_initFseState(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD, const ZSTD_seqSymbol* dt) in ZSTD_initFseState() argument
1239 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); in ZSTD_initFseState()
1241 (U32)DStatePtr->state, DTableH->tableLog); in ZSTD_initFseState()
1243 DStatePtr->table = dt + 1; in ZSTD_initFseState()
1247 ZSTD_updateFseState(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD) in ZSTD_updateFseState() argument
1249 ZSTD_seqSymbol const DInfo = DStatePtr->table[DStatePtr->state]; in ZSTD_updateFseState()
1252 DStatePtr->state = DInfo.nextState + lowBits; in ZSTD_updateFseState()