[Libreoffice-commits] core.git: configure.ac

Tomaž Vajngerl (via logerrit) logerrit at kemper.freedesktop.org
Tue Jul 9 02:59:12 UTC 2019


 configure.ac |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 99e6eaf28c3cceb4fbf5292b255354dd1bdbe471
Author:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Tue Jul 9 11:44:21 2019 +0900
Commit:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
CommitDate: Tue Jul 9 11:57:56 2019 +0900

    use the specific header file for the SSE/AVX in intrin. detection
    
    x86intrin.h is only available for gcc/clang, specific headers are
    available in all compilers (if they support that specific intrin.
    at all)
    
    Change-Id: Ic6dec052c150032f67ae76e0ca362c4bc77b55b0

diff --git a/configure.ac b/configure.ac
index b9785d895366..b76d977924ea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6759,7 +6759,7 @@ if test "$GCC" = "yes"; then
     save_CXXFLAGS=$CXXFLAGS
     CXXFLAGS="$CXXFLAGS -msse2"
     AC_COMPILE_IFELSE([AC_LANG_SOURCE([
-        #include <x86intrin.h>
+        #include <emmintrin.h>
         int main () {
             volatile __m128i a = _mm_set1_epi32 (0), b = _mm_set1_epi32 (0), c;
             c = _mm_xor_si128 (a, b);
@@ -6782,7 +6782,7 @@ if test "$GCC" = "yes"; then
     save_CXXFLAGS=$CXXFLAGS
     CXXFLAGS="$CXXFLAGS -mssse3"
     AC_COMPILE_IFELSE([AC_LANG_SOURCE([
-        #include <x86intrin.h>
+        #include <tmmintrin.h>
         int main () {
             volatile __m128i a = _mm_set1_epi32 (0), b = _mm_set1_epi32 (0), c;
             c = _mm_maddubs_epi16 (a, b);
@@ -6805,7 +6805,7 @@ if test "$GCC" = "yes"; then
     save_CXXFLAGS=$CXXFLAGS
     CXXFLAGS="$CXXFLAGS -mavx"
     AC_COMPILE_IFELSE([AC_LANG_SOURCE([
-        #include <x86intrin.h>
+        #include <immintrin.h>
         int main () {
             volatile __m256 a = _mm256_set1_ps (0.0f), b = _mm256_set1_ps (0.0f), c;
             c = _mm256_xor_ps(a, b);
@@ -6828,7 +6828,7 @@ if test "$GCC" = "yes"; then
     save_CXXFLAGS=$CXXFLAGS
     CXXFLAGS="$CXXFLAGS -mavx2"
     AC_COMPILE_IFELSE([AC_LANG_SOURCE([
-        #include <x86intrin.h>
+        #include <immintrin.h>
         int main () {
             volatile __m256i a = _mm256_set1_epi32 (0), b = _mm256_set1_epi32 (0), c;
             c = _mm256_maddubs_epi16(a, b);


More information about the Libreoffice-commits mailing list