Check for _mm_set_epi64x() usability in the SSE2 test

This commit is contained in:
Frank Denis 2015-12-29 23:18:28 +01:00
parent 1635f98638
commit a78161981c

View File

@ -293,7 +293,8 @@ AS_IF([test "x$EMSCRIPTEN" = "x"],[
# define __SSE2__ # define __SSE2__
#endif #endif
#include <emmintrin.h> #include <emmintrin.h>
]], [[ __m128d x = _mm_setzero_pd(); ]])], ]], [[ __m128d x = _mm_setzero_pd();
__m128i y = _mm_set_epi64x(0, 0); ]])],
[AC_MSG_RESULT(yes) [AC_MSG_RESULT(yes)
AC_DEFINE([HAVE_EMMINTRIN_H], [1], [sse2 is available]) AC_DEFINE([HAVE_EMMINTRIN_H], [1], [sse2 is available])
AX_CHECK_COMPILE_FLAG([-msse2], [CFLAGS_SSE2="-msse2"])], AX_CHECK_COMPILE_FLAG([-msse2], [CFLAGS_SSE2="-msse2"])],