comparison liba52/bitstream.h @ 28290:25337a2147e7

Lots and lots of #ifdef ARCH_... -> #if ARCH_... and #ifdef HAVE_MMX etc -> #if HAVE_MMX. There might be still more that need to be fixed.
author reimar
date Fri, 16 Jan 2009 09:21:21 +0000
parents 2eb96f52529a
children 4e0196e827db
comparison
equal deleted inserted replaced
28289:4210f3621db1 28290:25337a2147e7
35 #else 35 #else
36 // alternative (faster) bitstram reader (reades upto 3 bytes over the end of the input) 36 // alternative (faster) bitstram reader (reades upto 3 bytes over the end of the input)
37 #define ALT_BITSTREAM_READER 37 #define ALT_BITSTREAM_READER
38 38
39 /* used to avoid misaligned exceptions on some archs (alpha, ...) */ 39 /* used to avoid misaligned exceptions on some archs (alpha, ...) */
40 #if defined (ARCH_X86) || defined(HAVE_ARMV6) 40 #if ARCH_X86 || defined(HAVE_ARMV6)
41 # define unaligned32(a) (*(uint32_t*)(a)) 41 # define unaligned32(a) (*(uint32_t*)(a))
42 #else 42 #else
43 # ifdef __GNUC__ 43 # ifdef __GNUC__
44 static inline uint32_t unaligned32(const void *v) { 44 static inline uint32_t unaligned32(const void *v) {
45 struct Unaligned { 45 struct Unaligned {