| 1980 | } |
| 1981 | |
| 1982 | MEM_STATIC void FSE_encodeSymbol(BIT_CStream_t* bitC, FSE_CState_t* statePtr, unsigned symbol) |
| 1983 | { |
| 1984 | FSE_symbolCompressionTransform const symbolTT = ((const FSE_symbolCompressionTransform*)(statePtr->symbolTT))[symbol]; |
| 1985 | const U16* const stateTable = (const U16*)(statePtr->stateTable); |
| 1986 | U32 const nbBitsOut = (U32)((statePtr->value + symbolTT.deltaNbBits) >> 16); |
| 1987 | BIT_addBits(bitC, statePtr->value, nbBitsOut); |
| 1988 | statePtr->value = stateTable[ (statePtr->value >> nbBitsOut) + symbolTT.deltaFindState]; |
| 1989 | } |
| 1990 | |
| 1991 | MEM_STATIC void FSE_flushCState(BIT_CStream_t* bitC, const FSE_CState_t* statePtr) |
| 1992 | { |
no test coverage detected