| 142 | |
| 143 | #ifndef sign_extend64 |
| 144 | static inline av_const int64_t sign_extend64(int64_t val, unsigned bits) |
| 145 | { |
| 146 | unsigned shift = 8 * sizeof(int64_t) - bits; |
| 147 | union { uint64_t u; int64_t s; } v = { (uint64_t) val << shift }; |
| 148 | return v.s >> shift; |
| 149 | } |
| 150 | #endif |
| 151 | |
| 152 | #ifndef zero_extend |
no outgoing calls
no test coverage detected