| 2864 | } |
| 2865 | |
| 2866 | MEM_STATIC BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) |
| 2867 | { |
| 2868 | FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; |
| 2869 | U32 const nbBits = DInfo.nbBits; |
| 2870 | BYTE const symbol = DInfo.symbol; |
| 2871 | size_t const lowBits = BIT_readBits(bitD, nbBits); |
| 2872 | |
| 2873 | DStatePtr->state = DInfo.newState + lowBits; |
| 2874 | return symbol; |
| 2875 | } |
| 2876 | |
| 2877 | /*! FSE_decodeSymbolFast() : |
| 2878 | unsafe, only works if no symbol has a probability > 50% */ |
nothing calls this directly
no test coverage detected