[libc-commits] [libc] [libc][NFC] rename LIBC_LONG_DOUBLE_IS_IEEE754_BIN128 for consistency (PR #74052)

via libc-commits libc-commits at lists.llvm.org
Fri Dec 1 00:58:42 PST 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Guillaume Chatelet (gchatelet)

<details>
<summary>Changes</summary>

To make it consistent with https://github.com/llvm/llvm-project/pull/73948 and https://github.com/llvm/llvm-project/pull/73950


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


1 Files Affected:

- (modified) libc/src/__support/macros/properties/float.h (+3-3) 


``````````diff
diff --git a/libc/src/__support/macros/properties/float.h b/libc/src/__support/macros/properties/float.h
index 7e00ddc8f0cd327..09a6ba8e372605b 100644
--- a/libc/src/__support/macros/properties/float.h
+++ b/libc/src/__support/macros/properties/float.h
@@ -26,7 +26,7 @@
 // TODO: Replace with LIBC_LONG_DOUBLE_IS_X86_BIN80
 #define SPECIAL_X86_LONG_DOUBLE
 #elif (LDBL_MANT_DIG == 113)
-#define LIBC_LONG_DOUBLE_IS_IEEE754_BIN128
+#define LIBC_LONG_DOUBLE_IS_FLOAT128
 #endif
 
 // float16 support.
@@ -70,13 +70,13 @@ using float16 = _Float16;
 using float128 = _Float128;
 #elif defined(LIBC_COMPILER_HAS_FLOAT128_EXTENSION)
 using float128 = __float128;
-#elif defined(LIBC_LONG_DOUBLE_IS_IEEE754_BIN128)
+#elif defined(LIBC_LONG_DOUBLE_IS_FLOAT128)
 using float128 = long double;
 #endif
 
 #if defined(LIBC_COMPILER_HAS_C23_FLOAT128) ||                                 \
     defined(LIBC_COMPILER_HAS_FLOAT128_EXTENSION) ||                           \
-    defined(LIBC_LONG_DOUBLE_IS_IEEE754_BIN128)
+    defined(LIBC_LONG_DOUBLE_IS_FLOAT128)
 // TODO: Replace with LIBC_HAS_FLOAT128
 #define LIBC_COMPILER_HAS_FLOAT128
 #endif

``````````

</details>


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


More information about the libc-commits mailing list