From 59d6b08d9cee7476a2c2200c229d81e6156a06ba Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Fri, 28 Sep 2007 15:42:09 +0000 Subject: Make AC3 codec use Rockbox' native bitswap routines. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14886 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/liba52/bitstream.h | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'apps/codecs/liba52/bitstream.h') diff --git a/apps/codecs/liba52/bitstream.h b/apps/codecs/liba52/bitstream.h index f559fbf833..88f8fc4660 100644 --- a/apps/codecs/liba52/bitstream.h +++ b/apps/codecs/liba52/bitstream.h @@ -21,30 +21,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* (stolen from the kernel) */ -#ifdef WORDS_BIGENDIAN - -# define swab32(x) (x) - -#else - -# if 0 && defined (__i386__) - -# define swab32(x) __i386_swab32(x) - static inline const uint32_t __i386_swab32(uint32_t x) - { - __asm__("bswap %0" : "=r" (x) : "0" (x)); - return x; - } - -# else - -# define swab32(x)\ -((((uint8_t*)&x)[0] << 24) | (((uint8_t*)&x)[1] << 16) | \ - (((uint8_t*)&x)[2] << 8) | (((uint8_t*)&x)[3])) - -# endif -#endif +#define swab32(x) (betoh32(x)) void a52_bitstream_set_ptr (a52_state_t * state, uint8_t * buf); uint32_t a52_bitstream_get_bh (a52_state_t * state, uint32_t num_bits); -- cgit v1.2.3