[libc-commits] [libc] [libc][NFC] rename LIBC_LONG_DOUBLE_IS_IEEE754_BIN128 for consistency (PR #74052)
Guillaume Chatelet via libc-commits
libc-commits at lists.llvm.org
Fri Dec 1 00:58:12 PST 2023
https://github.com/gchatelet created https://github.com/llvm/llvm-project/pull/74052
To make it consistent with https://github.com/llvm/llvm-project/pull/73948 and https://github.com/llvm/llvm-project/pull/73950
>From d13bd4584894f88002d3e3a4be73d61d9b53a676 Mon Sep 17 00:00:00 2001
From: Guillaume Chatelet <gchatelet at google.com>
Date: Fri, 1 Dec 2023 08:56:26 +0000
Subject: [PATCH] [libc][NFC] rename LIBC_LONG_DOUBLE_IS_IEEE754_BIN128 for
consistency
---
libc/src/__support/macros/properties/float.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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
More information about the libc-commits
mailing list