]> Savannah Git Hosting - gnulib.git/commitdiff
crc-x86_64: Tweaks.
authorBruno Haible <bruno@clisp.org>
Tue, 17 Dec 2024 17:26:22 +0000 (18:26 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 17 Dec 2024 17:26:22 +0000 (18:26 +0100)
* modules/crc-x86_64 (Include): Fix the file name.
* m4/crc-x86_64.m4 (gl_CRC_X86_64_PCLMUL): Improve indentation.

ChangeLog
m4/crc-x86_64.m4
modules/crc-x86_64

index 0cf269fdb48f5f8280f07392f72d49cc75e4c306..74d1ded7d56b655f25f0c015608dcf121543e349 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-12-17  Bruno Haible  <bruno@clisp.org>
+
+       crc-x86_64: Tweaks.
+       * modules/crc-x86_64 (Include): Fix the file name.
+       * m4/crc-x86_64.m4 (gl_CRC_X86_64_PCLMUL): Improve indentation.
+
 2024-12-17  Bruno Haible  <bruno@clisp.org>
 
        xstdopen: Improve error message.
index ac1c57f9eee5b75591f93387f7c9e6adc2024d1b..fa649a5b82a95a7254e2e77badae450c2291781a 100644 (file)
@@ -1,5 +1,5 @@
 # crc-x86_64.m4
-# serial 1
+# serial 2
 dnl Copyright (C) 2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -10,30 +10,32 @@ AC_DEFUN([gl_CRC_X86_64_PCLMUL],
 [
   ac_save_CFLAGS=$CFLAGS
   CFLAGS="-mavx -mpclmul $CFLAGS"
-  AC_CACHE_CHECK([if pclmul intrinsic exists], [gl_cv_crc_pclmul],[
-  AC_LINK_IFELSE(
-    [AC_LANG_SOURCE([[
-      #include <x86intrin.h>
+  AC_CACHE_CHECK([if pclmul intrinsic exists], [gl_cv_crc_pclmul], [
+    AC_LINK_IFELSE(
+      [AC_LANG_SOURCE(
+        [[
+          #include <x86intrin.h>
 
-      int
-      main (void)
-      {
-        __m128i a, b;
-        a = _mm_clmulepi64_si128 (a, b, 0x00);
-        a = _mm_shuffle_epi8 (a, b);
-        return __builtin_cpu_supports ("pclmul");
-      }
-    ]])
-    ],[
-      gl_cv_crc_pclmul=yes
-    ],[
-      gl_cv_crc_pclmul=no
-    ])])
+          int
+          main (void)
+          {
+            __m128i a, b;
+            a = _mm_clmulepi64_si128 (a, b, 0x00);
+            a = _mm_shuffle_epi8 (a, b);
+            return __builtin_cpu_supports ("pclmul");
+          }
+        ]])
+      ], [
+        gl_cv_crc_pclmul=yes
+      ], [
+        gl_cv_crc_pclmul=no
+      ])
+  ])
   if test $gl_cv_crc_pclmul = yes; then
     AC_DEFINE([GL_CRC_X86_64_PCLMUL], [1],
               [CRC32 calculation by pclmul hardware instruction enabled])
   fi
   AM_CONDITIONAL([GL_CRC_X86_64_PCLMUL],
-                [test $gl_cv_crc_pclmul = yes])
+                 [test $gl_cv_crc_pclmul = yes])
   CFLAGS=$ac_save_CFLAGS
 ])
index 008065681973f210b5a561d560fe9b78b30e54cf..4796de054f15406c02a5691df4493af94090cfa1 100644 (file)
@@ -19,7 +19,7 @@ if GL_CRC_X86_64_PCLMUL
 endif
 
 Include:
-"crc.h"
+"crc-x86_64.h"
 
 License:
 LGPL