Mercurial > libavcodec.hg
comparison bitstream.h @ 4288:892dba2cf52a libavcodec
fix bug when __GNUC__ isn't defined and when compiling for a non-x86 architecture, patch by Martin Storsj?, martin at martin st
| author | bcoudurier |
|---|---|
| date | Fri, 08 Dec 2006 13:25:37 +0000 |
| parents | d6f83e2f8804 |
| children | 8abb0317d1eb |
comparison
equal
deleted
inserted
replaced
| 4287:9900add82642 | 4288:892dba2cf52a |
|---|---|
| 185 \ | 185 \ |
| 186 return ((const struct Unaligned *) v)->i; \ | 186 return ((const struct Unaligned *) v)->i; \ |
| 187 } | 187 } |
| 188 # elif defined(__DECC) | 188 # elif defined(__DECC) |
| 189 # define unaligned(x) \ | 189 # define unaligned(x) \ |
| 190 static inline uint##x##_t unaligned##x##(const void *v) { \ | 190 static inline uint##x##_t unaligned##x(const void *v) { \ |
| 191 return *(const __unaligned uint##x##_t *) v; \ | 191 return *(const __unaligned uint##x##_t *) v; \ |
| 192 } | 192 } |
| 193 # else | 193 # else |
| 194 # define unaligned(x) \ | 194 # define unaligned(x) \ |
| 195 static inline uint##x##_t unaligned##x##(const void *v) { \ | 195 static inline uint##x##_t unaligned##x(const void *v) { \ |
| 196 return *(const uint##x##_t *) v; \ | 196 return *(const uint##x##_t *) v; \ |
| 197 } | 197 } |
| 198 # endif | 198 # endif |
| 199 unaligned(16) | 199 unaligned(16) |
| 200 unaligned(32) | 200 unaligned(32) |
