[libc-commits] [libc] [libc][NFC] Remove unused define (PR #73222)

via libc-commits libc-commits at lists.llvm.org
Thu Nov 23 01:13:21 PST 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Guillaume Chatelet (gchatelet)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/73222.diff


1 Files Affected:

- (modified) libc/src/__support/FPUtil/PlatformDefs.h (+1-5) 


``````````diff
diff --git a/libc/src/__support/FPUtil/PlatformDefs.h b/libc/src/__support/FPUtil/PlatformDefs.h
index 7bf6db3a1ef29af..0195b909101db0f 100644
--- a/libc/src/__support/FPUtil/PlatformDefs.h
+++ b/libc/src/__support/FPUtil/PlatformDefs.h
@@ -11,10 +11,6 @@
 
 #include "src/__support/macros/properties/architectures.h"
 
-#if defined(LIBC_TARGET_ARCH_IS_X86)
-#define X87_FPU
-#endif
-
 // https://developer.arm.com/documentation/dui0491/i/C-and-C---Implementation-Details/Basic-data-types
 // https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms
 // https://docs.amd.com/bundle/HIP-Programming-Guide-v5.1/page/Programming_with_HIP.html
@@ -23,7 +19,7 @@
 #define LONG_DOUBLE_IS_DOUBLE
 #endif
 
-#if !defined(LONG_DOUBLE_IS_DOUBLE) && defined(X87_FPU)
+#if !defined(LONG_DOUBLE_IS_DOUBLE) && defined(LIBC_TARGET_ARCH_IS_X86)
 #define SPECIAL_X86_LONG_DOUBLE
 #endif
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/73222


More information about the libc-commits mailing list