[libc-commits] [libc] [libc] Fix SSE2 check for x86_64/sqrt.h. (PR #200468)

via libc-commits libc-commits at lists.llvm.org
Fri May 29 11:01:11 PDT 2026


https://github.com/lntue created https://github.com/llvm/llvm-project/pull/200468

None

>From fa772331d3dd65b4a04467a487b8005c2224c8d7 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue.h at gmail.com>
Date: Fri, 29 May 2026 17:59:35 +0000
Subject: [PATCH] [libc] Fix SSE2 check for x86_64/sqrt.h.

---
 libc/src/__support/FPUtil/x86_64/sqrt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libc/src/__support/FPUtil/x86_64/sqrt.h b/libc/src/__support/FPUtil/x86_64/sqrt.h
index e10447751d216..68ce627a57025 100644
--- a/libc/src/__support/FPUtil/x86_64/sqrt.h
+++ b/libc/src/__support/FPUtil/x86_64/sqrt.h
@@ -14,7 +14,7 @@
 #include "src/__support/macros/properties/architectures.h"
 #include "src/__support/macros/properties/cpu_features.h"
 
-#if !(defined(LIBC_TARGET_ARCH_IS_X86_64) && defined(LIBC_TARGET_CPU_HAS_SSE2))
+#if !defined(LIBC_TARGET_CPU_HAS_SSE2)
 #error "sqrtss / sqrtsd need SSE2"
 #endif
 



More information about the libc-commits mailing list