From b8eb272e48b98de6ce9fba04798e4652119e0a0a Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 15 Feb 2010 01:27:04 +0000 Subject: 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 --- tools/configure | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'tools') 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 <