Lines Matching refs:statePtr
514 MEM_STATIC void FSE_initCState(FSE_CState_t* statePtr, const FSE_CTable* ct) in FSE_initCState() argument
519 statePtr->value = (ptrdiff_t)1<<tableLog; in FSE_initCState()
520 statePtr->stateTable = u16ptr+2; in FSE_initCState()
521 statePtr->symbolTT = ct + 1 + (tableLog ? (1<<(tableLog-1)) : 1); in FSE_initCState()
522 statePtr->stateLog = tableLog; in FSE_initCState()
529 MEM_STATIC void FSE_initCState2(FSE_CState_t* statePtr, const FSE_CTable* ct, U32 symbol) in FSE_initCState2() argument
531 FSE_initCState(statePtr, ct); in FSE_initCState2()
532 …ompressionTransform symbolTT = ((const FSE_symbolCompressionTransform*)(statePtr->symbolTT))[symbo… in FSE_initCState2()
533 const U16* stateTable = (const U16*)(statePtr->stateTable); in FSE_initCState2()
535 statePtr->value = (nbBitsOut << 16) - symbolTT.deltaNbBits; in FSE_initCState2()
536 statePtr->value = stateTable[(statePtr->value >> nbBitsOut) + symbolTT.deltaFindState]; in FSE_initCState2()
540 MEM_STATIC void FSE_encodeSymbol(BIT_CStream_t* bitC, FSE_CState_t* statePtr, unsigned symbol) in FSE_encodeSymbol() argument
542 …sionTransform const symbolTT = ((const FSE_symbolCompressionTransform*)(statePtr->symbolTT))[symbo… in FSE_encodeSymbol()
543 const U16* const stateTable = (const U16*)(statePtr->stateTable); in FSE_encodeSymbol()
544 U32 const nbBitsOut = (U32)((statePtr->value + symbolTT.deltaNbBits) >> 16); in FSE_encodeSymbol()
545 BIT_addBits(bitC, statePtr->value, nbBitsOut); in FSE_encodeSymbol()
546 statePtr->value = stateTable[ (statePtr->value >> nbBitsOut) + symbolTT.deltaFindState]; in FSE_encodeSymbol()
549 MEM_STATIC void FSE_flushCState(BIT_CStream_t* bitC, const FSE_CState_t* statePtr) in FSE_flushCState() argument
551 BIT_addBits(bitC, statePtr->value, statePtr->stateLog); in FSE_flushCState()