summaryrefslogtreecommitdiff
path: root/tools/configure
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/configure
parent1bef4c66501893b4b7e154979a80f5386cbe964f (diff)
downloadrockbox-b8eb272e48b98de6ce9fba04798e4652119e0a0a.tar.gz
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/configure')
-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 () {
171 GCCOPTS="$GCCOPTS -I\$(SIMDIR)" 171 GCCOPTS="$GCCOPTS -I\$(SIMDIR)"
172 172
173 if test "X$crosscompile" != "Xyes"; then 173 if test "X$crosscompile" != "Xyes"; then
174 if [ "`uname -m`" = "x86_64" ] || [ "`uname -m`" = "amd64" ]; then 174 case `uname -m` in
175 # fPIC is needed to make shared objects link 175 x86_64|amd64)
176 # setting visibility to hidden is necessary to avoid strange crashes 176 # fPIC is needed to make shared objects link
177 # due to symbol clashing 177 # setting visibility to hidden is necessary to avoid strange crashes
178 GCCOPTS="$GCCOPTS -fPIC -fvisibility=hidden" 178 # due to symbol clashing
179 fi 179 GCCOPTS="$GCCOPTS -fPIC -fvisibility=hidden"
180 # x86_64 supports MMX by default
181 ;;
182
183 i686)
184 echo "Enabling MMX support"
185 GCCOPTS="$GCCOPTS -mmmx"
186 ;;
187 esac
180 188
181 id=$$ 189 id=$$
182 cat >$tmpdir/conftest-$id.c <<EOF 190 cat >$tmpdir/conftest-$id.c <<EOF
@@ -218,6 +226,8 @@ EOF
218 LDOPTS="-mconsole $sdl_libs" 226 LDOPTS="-mconsole $sdl_libs"
219 output="rockboxui.exe" # use this as output binary name 227 output="rockboxui.exe" # use this as output binary name
220 endian="little" # windows is little endian 228 endian="little" # windows is little endian
229 echo "Enabling MMX support"
230 GCCOPTS="$GCCOPTS -mmmx"
221 fi 231 fi
222} 232}
223 233