Configure option for NEON optimizations.

Disabled by default, no auto logic.
This commit is contained in:
Nea Gix 2013-05-04 14:17:20 +02:00 committed by Themaister
parent b84b0e565b
commit a01defd01b
2 changed files with 7 additions and 0 deletions

View File

@ -33,6 +33,12 @@ if [ "$HAVE_VIDEOCORE" = 'yes' ]; then
EXTRA_GL_LIBS="-lGLESv2 -lbcm_host -lvcos -lvchiq_arm"
fi
if [ "$HAVE_NEON" = "yes" ]; then
CFLAGS="$CFLAGS -mfpu=neon -mfloat-abi=hard"
CXXFLAGS="$CXXFLAGS -mfpu=neon -mfloat-abi=hard"
ASFLAGS="$ASFLAGS -mfpu=neon -mfloat-abi=hard"
fi
if [ "$HAVE_EGL" != "no" ]; then
check_pkgconf EGL egl
# some systems have EGL libs, but no pkgconfig

View File

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