diff options
| author | Thom Johansen <thomj@rockbox.org> | 2007-09-28 15:42:09 +0000 |
|---|---|---|
| committer | Thom Johansen <thomj@rockbox.org> | 2007-09-28 15:42:09 +0000 |
| commit | 59d6b08d9cee7476a2c2200c229d81e6156a06ba (patch) | |
| tree | d7d0049116ab0214ebd6f4b1987177ce6745bd54 /apps/codecs/liba52 | |
| parent | 1ef5dadec5342dc126a1f7745cd48030cb05eaa8 (diff) | |
| download | rockbox-59d6b08d9cee7476a2c2200c229d81e6156a06ba.zip rockbox-59d6b08d9cee7476a2c2200c229d81e6156a06ba.tar.gz rockbox-59d6b08d9cee7476a2c2200c229d81e6156a06ba.tar.bz2 rockbox-59d6b08d9cee7476a2c2200c229d81e6156a06ba.tar.xz | |
Make AC3 codec use Rockbox' native bitswap routines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14886 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/liba52')
| -rw-r--r-- | apps/codecs/liba52/bitstream.h | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/apps/codecs/liba52/bitstream.h b/apps/codecs/liba52/bitstream.h index f559fbf..88f8fc4 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); |