From 4653471cad20fe1f558c9a106d514d013dfcfc38 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 14 May 2014 22:34:27 -0700 Subject: [PATCH] Check for SSSE3 instructions set --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 5c743571..3d8b17a9 100644 --- a/configure.ac +++ b/configure.ac @@ -272,6 +272,14 @@ AS_IF([test "x$EMSCRIPTEN" = "x"],[ AC_DEFINE([HAVE_PMMINTRIN_H], [1], [sse3 is available])], [AC_MSG_RESULT(no)]) + AC_MSG_CHECKING(for SSSE3 instructions set) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +#pragma GCC target("ssse3") +#include +]], [[ __m64 x = _mm_abs_pi32(_m_from_int(0)); ]])], + [AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_TMMINTRIN_H], [1], [ssse3 is available])], + [AC_MSG_RESULT(no)]) ]) AC_CHECK_HEADERS([sys/mman.h])