From 40f4d285ae70e7eca597bab603487adbbf4efcbf Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Wed, 22 May 2024 08:03:37 -0500 Subject: [PATCH] Don't use _Float16 on non-SSE2 x86 _Float16 on x86 requires SSE2 instruction set to be available. References: * https://gcc.gnu.org/onlinedocs/gcc/Floating-Types.html * https://clang.llvm.org/docs/LanguageExtensions.html#half-precision-floating-point --- simde/simde-f16.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simde/simde-f16.h b/simde/simde-f16.h index 495fff18f..4400ffbad 100644 --- a/simde/simde-f16.h +++ b/simde/simde-f16.h @@ -76,7 +76,7 @@ SIMDE_BEGIN_DECLS_ defined(SIMDE_X86_AVX512FP16_NATIVE) || \ (defined(SIMDE_ARCH_X86_SSE2) && HEDLEY_GCC_VERSION_CHECK(12,0,0)) || \ (defined(SIMDE_ARCH_AARCH64) && HEDLEY_GCC_VERSION_CHECK(7,0,0) && !defined(__cplusplus)) || \ - ((defined(SIMDE_ARCH_X86) || defined(SIMDE_ARCH_AMD64)) && SIMDE_DETECT_CLANG_VERSION_CHECK(15,0,0)) || \ + ((defined(SIMDE_ARCH_X86_SSE2) || defined(SIMDE_ARCH_AMD64)) && SIMDE_DETECT_CLANG_VERSION_CHECK(15,0,0)) || \ (!(defined(SIMDE_ARCH_X86) || defined(SIMDE_ARCH_AMD64)) && SIMDE_DETECT_CLANG_VERSION_CHECK(6,0,0))) || \ defined(SIMDE_ARCH_RISCV_ZVFH) /* We haven't found a better way to detect this. It seems like defining