diff options
author | Thom Johansen <thomj@rockbox.org> | 2006-04-25 19:57:24 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2006-04-25 19:57:24 +0000 |
commit | ef1a36c5a759f250fd5cc3a146637217ca0aac54 (patch) | |
tree | 1c092e90ff9c2731ceffa8252e23c11f3c744ee7 /apps | |
parent | 83247255113d3c53feeea92350c34edd18c3b18f (diff) | |
download | rockbox-ef1a36c5a759f250fd5cc3a146637217ca0aac54.tar.gz rockbox-ef1a36c5a759f250fd5cc3a146637217ca0aac54.zip |
Use the Rockbox endian swap routine instead of the default one.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9804 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/codecs/libmusepack/internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/codecs/libmusepack/internal.h b/apps/codecs/libmusepack/internal.h index 19642a240e..44279e2fa5 100644 --- a/apps/codecs/libmusepack/internal.h +++ b/apps/codecs/libmusepack/internal.h @@ -44,11 +44,15 @@ enum { }; /// Big/little endian 32 bit byte swapping routine. +/* Use our Rockbox (maybe) optimised swap routine instead */ +#define mpc_swap32(x) swap32(x) +#if 0 static __inline mpc_uint32_t mpc_swap32(mpc_uint32_t val) { return (((val & 0xff000000) >> 24) | ((val & 0x00ff0000) >> 8) | ((val & 0x0000ff00) << 8) | ((val & 0x000000ff) << 24)); } +#endif /// Searches for a ID3v2-tag and reads the length (in bytes) of it. /// \param reader supplying raw stream data |