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

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


Author: lntue
Date: 2026-05-29T14:57:55-04:00
New Revision: 6a96948271810324d02b23d31a83bc2166f4c787

URL: https://github.com/llvm/llvm-project/commit/6a96948271810324d02b23d31a83bc2166f4c787
DIFF: https://github.com/llvm/llvm-project/commit/6a96948271810324d02b23d31a83bc2166f4c787.diff

LOG: [libc] Fix SSE2 check for x86_64/sqrt.h. (#200468)

Added: 
    

Modified: 
    libc/src/__support/FPUtil/x86_64/sqrt.h

Removed: 
    


################################################################################
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