Lines Matching refs:DStatePtr
427 static void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt);
429 static unsigned char FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD);
431 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr);
485 static unsigned char FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD);
582 MEM_STATIC void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt) in FSE_initDState() argument
586 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); in FSE_initDState()
588 DStatePtr->table = dt + 1; in FSE_initDState()
591 MEM_STATIC BYTE FSE_peekSymbol(const FSE_DState_t* DStatePtr) in FSE_peekSymbol() argument
593 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_peekSymbol()
597 MEM_STATIC void FSE_updateState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_updateState() argument
599 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_updateState()
602 DStatePtr->state = DInfo.newState + lowBits; in FSE_updateState()
605 MEM_STATIC BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbol() argument
607 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
612 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
618 MEM_STATIC BYTE FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbolFast() argument
620 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
625 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
629 MEM_STATIC unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr) in FSE_endOfDState() argument
631 return DStatePtr->state == 0; in FSE_endOfDState()