+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.
# 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,
[
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
])