From 7bab21a2eb616b3baa6b9387cb564fed94ebe05b Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 24 Nov 2026 12:29:26 -0800 Subject: [PATCH] Always use CPU dispatching on x86-64 when supported and not disabled [skip ci] --- src/bitutils.c | 2 +- src/vecutils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bitutils.c b/src/bitutils.c index 655f34ab..9ef8f71c 100644 --- a/src/bitutils.c +++ b/src/bitutils.c @@ -26,7 +26,7 @@ #endif /* Disable for LLVM due to crash with bitcode generation */ -#if defined(USE_TARGET_CLONES) && defined(__x86_64__) && !defined(__POPCNT__) && !defined(__llvm__) +#if defined(USE_TARGET_CLONES) && defined(__x86_64__) && !defined(__llvm__) #define BIT_TARGET_CLONES __attribute__((target_clones("default", "popcnt"))) #else #define BIT_TARGET_CLONES diff --git a/src/vecutils.c b/src/vecutils.c index 618ed024..2f72aa27 100644 --- a/src/vecutils.c +++ b/src/vecutils.c @@ -5,7 +5,7 @@ #include "halfvec.h" /* for USE_TARGET_CLONES */ #include "vecutils.h" -#if defined(USE_TARGET_CLONES) && defined(__x86_64__) && !defined(__FMA__) +#if defined(USE_TARGET_CLONES) && defined(__x86_64__) #if (defined(__GNUC__) && __GNUC__ >= 12) || (defined(__clang_major__) && __clang_major__ >= 18) #define VECTOR_TARGET_CLONES __attribute__((target_clones("default", "arch=x86-64-v3", "arch=x86-64-v4"))) #else