* Read 1-25 bits. */
| 335 | * Read 1-25 bits. |
| 336 | */ |
| 337 | static inline unsigned int get_bits(GetBitContext *s, int n) |
| 338 | { |
| 339 | register unsigned int tmp; |
| 340 | OPEN_READER(re, s); |
| 341 | av_assert2(n>0 && n<=25); |
| 342 | UPDATE_CACHE(re, s); |
| 343 | tmp = SHOW_UBITS(re, s, n); |
| 344 | LAST_SKIP_BITS(re, s, n); |
| 345 | CLOSE_READER(re, s); |
| 346 | av_assert2(tmp < UINT64_C(1) << n); |
| 347 | return tmp; |
| 348 | } |
| 349 | |
| 350 | /** |
| 351 | * Read 0-25 bits. |
no outgoing calls