| 229 | } |
| 230 | |
| 231 | U32 RangeDecoder::culshift(U32 shift) |
| 232 | { |
| 233 | U32 tmp; |
| 234 | normalize(); |
| 235 | help = range>>shift; |
| 236 | tmp = low/help; |
| 237 | #ifdef EXTRAFAST |
| 238 | return tmp; |
| 239 | #else |
| 240 | return (tmp>>shift ? (1u<<shift)-1 : tmp); |
| 241 | #endif |
| 242 | } |
| 243 | |
| 244 | /* Update decoding state */ |
| 245 | /* sy_f is the interval length (frequency of the symbol) */ |
nothing calls this directly
no outgoing calls
no test coverage detected