Lines Matching refs:DStatePtr
440 static void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt);
442 static unsigned char FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD);
444 static unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr);
499 static unsigned char FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD);
600 MEM_STATIC void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt)
604 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog);
606 DStatePtr->table = dt + 1;
609 MEM_STATIC BYTE FSE_peekSymbol(const FSE_DState_t* DStatePtr)
611 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state];
615 MEM_STATIC void FSE_updateState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD)
617 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state];
620 DStatePtr->state = DInfo.newState + lowBits;
623 MEM_STATIC BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD)
625 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state];
630 DStatePtr->state = DInfo.newState + lowBits;
636 MEM_STATIC BYTE FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD)
638 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state];
643 DStatePtr->state = DInfo.newState + lowBits;
647 MEM_STATIC unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr)
649 return DStatePtr->state == 0;