mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
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:
1 parent
91a74d3614
commit
7814596fa9
1 file changed
+2
-1
+2
-1
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user