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

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


Author: Guillaume Chatelet
Date: 2023-11-23T10:24:49+01:00
New Revision: 436f5f652b31c8d7b8bac98fbc8acb5ab573401e

URL: https://github.com/llvm/llvm-project/commit/436f5f652b31c8d7b8bac98fbc8acb5ab573401e
DIFF: https://github.com/llvm/llvm-project/commit/436f5f652b31c8d7b8bac98fbc8acb5ab573401e.diff

LOG: [libc][NFC] Remove unused define (#73222)

Added: 
    

Modified: 
    libc/src/__support/FPUtil/PlatformDefs.h

Removed: 
    


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


        


More information about the libc-commits mailing list