Add SSE/SSE2 enable options.

Add --enable-sse, similar to --enable-neon.
Only really useful for x86 as x86_64 always has SSE2.
This commit is contained in:
Themaister 2013-05-04 15:08:04 +02:00
parent 946a2a2fc1
commit b2e8efef9f
2 changed files with 7 additions and 1 deletions

View File

@ -39,6 +39,11 @@ if [ "$HAVE_NEON" = "yes" ]; then
ASFLAGS="$ASFLAGS -mfpu=neon -mfloat-abi=hard" ASFLAGS="$ASFLAGS -mfpu=neon -mfloat-abi=hard"
fi fi
if [ "$HAVE_SSE" = "yes" ]; then
CFLAGS="$CFLAGS -msse -msse2"
CXXFLAGS="$CXXFLAGS -msse -msse2"
fi
if [ "$HAVE_EGL" != "no" ]; then if [ "$HAVE_EGL" != "no" ]; then
check_pkgconf EGL egl check_pkgconf EGL egl
# some systems have EGL libs, but no pkgconfig # some systems have EGL libs, but no pkgconfig

View File

@ -31,4 +31,5 @@ HAVE_XVIDEO=auto # Enable XVideo support
HAVE_SDL_IMAGE=auto # Enable SDL_image support HAVE_SDL_IMAGE=auto # Enable SDL_image support
HAVE_PYTHON=auto # Enable Python 3 support for shaders HAVE_PYTHON=auto # Enable Python 3 support for shaders
HAVE_BSV_MOVIE=yes # Disable BSV movie support HAVE_BSV_MOVIE=yes # Disable BSV movie support
HAVE_NEON=no # Enable ARM NEON optimizations (hardfloat) HAVE_NEON=no # Forcefully enable ARM NEON optimizations (hardfloat)
HAVE_SSE=no # Forcefully enable x86 SSE optimizations (SSE, SSE2)