From: Paul Eggert Date: Wed, 14 Jun 2023 21:13:35 +0000 (-0700) Subject: cksum: fix bug in check for cksum_pclmul X-Git-Tag: v9.4~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7814596fa91a07fb2f1d0972f93f26de8a4ad547;p=thirdparty%2Fcoreutils.git cksum: fix bug in check for cksum_pclmul This fixes a typo in the previous patch. Problem reported by Pádraig Brady . * src/cksum.c (pclmul_supported): Also require AVX support to use cksum_pclmul. --- diff --git a/src/cksum.c b/src/cksum.c index 631ac3449b..e935ba75c8 100644 --- a/src/cksum.c +++ b/src/cksum.c @@ -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",