summaryrefslogtreecommitdiffstats
path: root/apps/codecs/libmusepack/internal.h
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2006-04-25 19:57:24 +0000
committerThom Johansen <thomj@rockbox.org>2006-04-25 19:57:24 +0000
commitef1a36c5a759f250fd5cc3a146637217ca0aac54 (patch)
tree1c092e90ff9c2731ceffa8252e23c11f3c744ee7 /apps/codecs/libmusepack/internal.h
parent83247255113d3c53feeea92350c34edd18c3b18f (diff)
downloadrockbox-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/codecs/libmusepack/internal.h')
-rw-r--r--apps/codecs/libmusepack/internal.h4
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