Decode bits without modelling */
| 167 | |
| 168 | /* Decode bits without modelling */ |
| 169 | U32 RangeDecoder::readBits(U32 bits) |
| 170 | { |
| 171 | U32 tmp; |
| 172 | if (bits > 21) // 22 bits |
| 173 | { |
| 174 | tmp = readShort(); |
| 175 | U32 tmp1 = readBits(bits - 16) << 16; |
| 176 | return (tmp1|tmp); |
| 177 | } |
| 178 | tmp = culshift(bits); |
| 179 | update(1, tmp, 1u<<bits); |
| 180 | return tmp; |
| 181 | } |
| 182 | |
| 183 | /* Decode a byte without modelling */ |
| 184 | U8 RangeDecoder::readByte() |
nothing calls this directly
no outgoing calls
no test coverage detected