Lines Matching refs:statePtr

510 MEM_STATIC void FSE_initCState(FSE_CState_t* statePtr, const FSE_CTable* ct)  in FSE_initCState()  argument
515 statePtr->value = (ptrdiff_t)1<<tableLog; in FSE_initCState()
516 statePtr->stateTable = u16ptr+2; in FSE_initCState()
517 statePtr->symbolTT = ct + 1 + (tableLog ? (1<<(tableLog-1)) : 1); in FSE_initCState()
518 statePtr->stateLog = tableLog; in FSE_initCState()
525 MEM_STATIC void FSE_initCState2(FSE_CState_t* statePtr, const FSE_CTable* ct, U32 symbol) in FSE_initCState2() argument
527 FSE_initCState(statePtr, ct); in FSE_initCState2()
528 …ompressionTransform symbolTT = ((const FSE_symbolCompressionTransform*)(statePtr->symbolTT))[symbo… in FSE_initCState2()
529 const U16* stateTable = (const U16*)(statePtr->stateTable); in FSE_initCState2()
531 statePtr->value = (nbBitsOut << 16) - symbolTT.deltaNbBits; in FSE_initCState2()
532 statePtr->value = stateTable[(statePtr->value >> nbBitsOut) + symbolTT.deltaFindState]; in FSE_initCState2()
536 MEM_STATIC void FSE_encodeSymbol(BIT_CStream_t* bitC, FSE_CState_t* statePtr, unsigned symbol) in FSE_encodeSymbol() argument
538 …sionTransform const symbolTT = ((const FSE_symbolCompressionTransform*)(statePtr->symbolTT))[symbo… in FSE_encodeSymbol()
539 const U16* const stateTable = (const U16*)(statePtr->stateTable); in FSE_encodeSymbol()
540 U32 const nbBitsOut = (U32)((statePtr->value + symbolTT.deltaNbBits) >> 16); in FSE_encodeSymbol()
541 BIT_addBits(bitC, statePtr->value, nbBitsOut); in FSE_encodeSymbol()
542 statePtr->value = stateTable[ (statePtr->value >> nbBitsOut) + symbolTT.deltaFindState]; in FSE_encodeSymbol()
545 MEM_STATIC void FSE_flushCState(BIT_CStream_t* bitC, const FSE_CState_t* statePtr) in FSE_flushCState() argument
547 BIT_addBits(bitC, statePtr->value, statePtr->stateLog); in FSE_flushCState()