cksum: fix bug in check for cksum_pclmul

This fixes a typo in the previous patch.
Problem reported by Pádraig Brady <https://bugs.gnu.org/64058#11>.
* src/cksum.c (pclmul_supported): Also require AVX support
to use cksum_pclmul.
This commit is contained in:
Paul Eggert committed 2023-06-14 14:54:46 -07:00
1 parent 91a74d3614
commit 7814596fa9
1 file changed
+2 -1
+2 -1
View File
@@ -160,7 +160,8 @@ static bool
pclmul_supported (void)
{
# if USE_PCLMUL_CRC32
bool pclmul_enabled = 0 < __builtin_cpu_supports ("pclmul");
bool pclmul_enabled = (0 < __builtin_cpu_supports ("pclmul")
&& 0 < __builtin_cpu_supports ("avx"));
if (cksum_debug)
error (0, 0, "%s",