[libc-commits] [libc] [libc] Fix long double is double double const (PR #113258)
via libc-commits
libc-commits at lists.llvm.org
Mon Oct 21 20:27:38 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Michael Jones (michaelrj-google)
<details>
<summary>Changes</summary>
Turns out for double double LDBL_MANT_DIG == 106. This patch fixes the
constant. Should fix the ppc buildbot.
Previously:
https://github.com/llvm/llvm-project/pull/113235
https://github.com/llvm/llvm-project/issues/113237
https://github.com/llvm/llvm-project/pull/91651
---
Full diff: https://github.com/llvm/llvm-project/pull/113258.diff
1 Files Affected:
- (modified) libc/src/__support/macros/properties/types.h (+1-1)
``````````diff
diff --git a/libc/src/__support/macros/properties/types.h b/libc/src/__support/macros/properties/types.h
index 5ea54a4f9ef9dd..30c742c007ca19 100644
--- a/libc/src/__support/macros/properties/types.h
+++ b/libc/src/__support/macros/properties/types.h
@@ -27,7 +27,7 @@
#define LIBC_TYPES_LONG_DOUBLE_IS_X86_FLOAT80
#elif (LDBL_MANT_DIG == 113)
#define LIBC_TYPES_LONG_DOUBLE_IS_FLOAT128
-#elif (LDBL_MANT_DIG == 103)
+#elif (LDBL_MANT_DIG == 106)
#define LIBC_TYPES_LONG_DOUBLE_IS_DOUBLE_DOUBLE
#endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/113258
More information about the libc-commits
mailing list