]> git.sesse.net Git - x264/commitdiff
x86: Enable SSE2 by default on x86-32
authorHenrik Gramner <henrik@gramner.com>
Tue, 11 Aug 2015 15:19:35 +0000 (17:19 +0200)
committerAnton Mitrofanov <BugMaster@narod.ru>
Tue, 18 Aug 2015 22:24:27 +0000 (01:24 +0300)
It makes more sense to tune the defaults to benefit the vast majority of users.

Anyone still using a Pentium III for video encoding is of course free to
explicitly set different flags when compiling.

configure

index 26f6c3906284779a312224ad7e27adaeb5ef7a6d..57a47acc253529cdf91ab1e42e2660f5d2530f28 100755 (executable)
--- a/configure
+++ b/configure
@@ -670,7 +670,7 @@ case $host_cpu in
                 CFLAGS="$CFLAGS -march=i686"
             fi
             if [[ "$asm" == auto && "$CFLAGS" != *-mfpmath* ]]; then
-                CFLAGS="$CFLAGS -mfpmath=sse -msse"
+                CFLAGS="$CFLAGS -mfpmath=sse -msse -msse2"
             fi
             CFLAGS="-m32 $CFLAGS"
             LDFLAGS="-m32 $LDFLAGS"