* Read 0-64 bits. */
| 454 | * Read 0-64 bits. |
| 455 | */ |
| 456 | static inline uint64_t get_bits64(GetBitContext *s, int n) |
| 457 | { |
| 458 | if (n <= 32) { |
| 459 | return get_bits_long(s, n); |
| 460 | } else { |
| 461 | #ifdef BITSTREAM_READER_LE |
| 462 | uint64_t ret = get_bits_long(s, 32); |
| 463 | return ret | (uint64_t) get_bits_long(s, n - 32) << 32; |
| 464 | #else |
| 465 | uint64_t ret = (uint64_t) get_bits_long(s, n - 32) << 32; |
| 466 | return ret | get_bits_long(s, 32); |
| 467 | #endif |
| 468 | } |
| 469 | } |
| 470 | |
| 471 | /** |
| 472 | * Read 0-32 bits as a signed integer. |
no test coverage detected