• Home
  • Raw
  • Download

Lines Matching refs:statePtr

427 ZSTD_STATIC void FSE_initCState(FSE_CState_t *statePtr, const FSE_CTable *ct)  in FSE_initCState()  argument
432 statePtr->value = (ptrdiff_t)1 << tableLog; in FSE_initCState()
433 statePtr->stateTable = u16ptr + 2; in FSE_initCState()
434 statePtr->symbolTT = ((const U32 *)ct + 1 + (tableLog ? (1 << (tableLog - 1)) : 1)); in FSE_initCState()
435 statePtr->stateLog = tableLog; in FSE_initCState()
441 ZSTD_STATIC void FSE_initCState2(FSE_CState_t *statePtr, const FSE_CTable *ct, U32 symbol) in FSE_initCState2() argument
443 FSE_initCState(statePtr, ct); in FSE_initCState2()
445 …mpressionTransform symbolTT = ((const FSE_symbolCompressionTransform *)(statePtr->symbolTT))[symbo… in FSE_initCState2()
446 const U16 *stateTable = (const U16 *)(statePtr->stateTable); in FSE_initCState2()
448 statePtr->value = (nbBitsOut << 16) - symbolTT.deltaNbBits; in FSE_initCState2()
449 statePtr->value = stateTable[(statePtr->value >> nbBitsOut) + symbolTT.deltaFindState]; in FSE_initCState2()
453 ZSTD_STATIC void FSE_encodeSymbol(BIT_CStream_t *bitC, FSE_CState_t *statePtr, U32 symbol) in FSE_encodeSymbol() argument
455 …const FSE_symbolCompressionTransform symbolTT = ((const FSE_symbolCompressionTransform *)(statePtr in FSE_encodeSymbol()
456 const U16 *const stateTable = (const U16 *)(statePtr->stateTable); in FSE_encodeSymbol()
457 U32 nbBitsOut = (U32)((statePtr->value + symbolTT.deltaNbBits) >> 16); in FSE_encodeSymbol()
458 BIT_addBits(bitC, statePtr->value, nbBitsOut); in FSE_encodeSymbol()
459 statePtr->value = stateTable[(statePtr->value >> nbBitsOut) + symbolTT.deltaFindState]; in FSE_encodeSymbol()
462 ZSTD_STATIC void FSE_flushCState(BIT_CStream_t *bitC, const FSE_CState_t *statePtr) in FSE_flushCState() argument
464 BIT_addBits(bitC, statePtr->value, statePtr->stateLog); in FSE_flushCState()