From a01defd01bfc1c7123092b5fd28efbe07d0cc3f2 Mon Sep 17 00:00:00 2001 From: Nea Gix Date: Sat, 4 May 2013 14:17:20 +0200 Subject: [PATCH] Configure option for NEON optimizations. Disabled by default, no auto logic. --- qb/config.libs.sh | 6 ++++++ qb/config.params.sh | 1 + 2 files changed, 7 insertions(+) diff --git a/qb/config.libs.sh b/qb/config.libs.sh index 3551e558f2..4e449c0455 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -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 diff --git a/qb/config.params.sh b/qb/config.params.sh index 193ecba54c..aae6eaf650 100644 --- a/qb/config.params.sh +++ b/qb/config.params.sh @@ -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)