| 133 | |
| 134 | #ifndef sign_extend |
| 135 | static inline av_const int sign_extend(int val, unsigned bits) |
| 136 | { |
| 137 | unsigned shift = 8 * sizeof(int) - bits; |
| 138 | union { unsigned u; int s; } v = { (unsigned) val << shift }; |
| 139 | return v.s >> shift; |
| 140 | } |
| 141 | #endif |
| 142 | |
| 143 | #ifndef sign_extend64 |
no outgoing calls