From ef1a36c5a759f250fd5cc3a146637217ca0aac54 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Tue, 25 Apr 2006 19:57:24 +0000 Subject: 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 --- apps/codecs/libmusepack/internal.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/codecs') diff --git a/apps/codecs/libmusepack/internal.h b/apps/codecs/libmusepack/internal.h index 19642a2..44279e2 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 -- cgit v1.1