summaryrefslogtreecommitdiffstats
path: root/apps/codecs/libwma/bitstream.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-07-12 22:12:25 +0000
committerJens Arnold <amiconn@rockbox.org>2007-07-12 22:12:25 +0000
commit42bd5b46f09556e04994981e83d8da397912a303 (patch)
tree7f8d3bd685ff7719d257874459eac131724cd372 /apps/codecs/libwma/bitstream.h
parentd7dd23939a9b9130ca26f94f122efd08e10bcc33 (diff)
downloadrockbox-42bd5b46f09556e04994981e83d8da397912a303.tar.gz
rockbox-42bd5b46f09556e04994981e83d8da397912a303.zip
WMA codec: Coldfire is capable of unaligned memory accesses, so lets make use of it. ~1.5% speedup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13865 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwma/bitstream.h')
-rw-r--r--apps/codecs/libwma/bitstream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/libwma/bitstream.h b/apps/codecs/libwma/bitstream.h
index c02845e09b..77ccff695e 100644
--- a/apps/codecs/libwma/bitstream.h
+++ b/apps/codecs/libwma/bitstream.h
@@ -203,7 +203,7 @@ typedef struct RL_VLC_ELEM {
#endif
/* used to avoid missaligned exceptions on some archs (alpha, ...) */
-#if defined(ARCH_X86)
+#if defined(ARCH_X86) || defined(CPU_COLDFIRE)
# define unaligned16(a) (*(const uint16_t*)(a))
# define unaligned32(a) (*(const uint32_t*)(a))
# define unaligned64(a) (*(const uint64_t*)(a))