summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2010-02-15 01:27:04 +0000
committerJens Arnold <amiconn@rockbox.org>2010-02-15 01:27:04 +0000
commitb8eb272e48b98de6ce9fba04798e4652119e0a0a (patch)
treef55f5f0e2192d34f658000f537d96767bfa5533d /tools
parent1bef4c66501893b4b7e154979a80f5386cbe964f (diff)
downloadrockbox-b8eb272e48b98de6ce9fba04798e4652119e0a0a.tar.gz
rockbox-b8eb272e48b98de6ce9fba04798e4652119e0a0a.tar.bz2
rockbox-b8eb272e48b98de6ce9fba04798e4652119e0a0a.zip
libdemac: Add x86/x86_64 MMX asm for the filters. Not relevant for target but speeds up decoding on x86/x86_64 sims. Average speedup ranges from 25% for -c2000 to 3 times for -c5000; on Intel Atom it's even 45% for -c2000 to 6 times for -c5000.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24663 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure22
1 files changed, 16 insertions, 6 deletions
diff --git a/tools/configure b/tools/configure
index 7a04cecc9c..4d61d8e903 100755
--- a/tools/configure
+++ b/tools/configure
@@ -171,12 +171,20 @@ simcc () {
GCCOPTS="$GCCOPTS -I\$(SIMDIR)"
if test "X$crosscompile" != "Xyes"; then
- if [ "`uname -m`" = "x86_64" ] || [ "`uname -m`" = "amd64" ]; then
- # fPIC is needed to make shared objects link
- # setting visibility to hidden is necessary to avoid strange crashes
- # due to symbol clashing
- GCCOPTS="$GCCOPTS -fPIC -fvisibility=hidden"
- fi
+ case `uname -m` in
+ x86_64|amd64)
+ # fPIC is needed to make shared objects link
+ # setting visibility to hidden is necessary to avoid strange crashes
+ # due to symbol clashing
+ GCCOPTS="$GCCOPTS -fPIC -fvisibility=hidden"
+ # x86_64 supports MMX by default
+ ;;
+
+ i686)
+ echo "Enabling MMX support"
+ GCCOPTS="$GCCOPTS -mmmx"
+ ;;
+ esac
id=$$
cat >$tmpdir/conftest-$id.c <<EOF
@@ -218,6 +226,8 @@ EOF
LDOPTS="-mconsole $sdl_libs"
output="rockboxui.exe" # use this as output binary name
endian="little" # windows is little endian
+ echo "Enabling MMX support"
+ GCCOPTS="$GCCOPTS -mmmx"
fi
}