Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libc] Fix long double is double double const #113258

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

michaelrj-google
Copy link
Contributor

Turns out for double double LDBL_MANT_DIG == 106. This patch fixes the
constant. Should fix the ppc buildbot.

Previously:
#113235
#113237
#91651

Turns out for double double LDBL_MANT_DIG == 106. This patch fixes the
constant. Should fix the ppc buildbot.

Previously:
llvm#113235
llvm#113237
llvm#91651
@llvmbot
Copy link
Collaborator

llvmbot commented Oct 22, 2024

@llvm/pr-subscribers-libc

Author: Michael Jones (michaelrj-google)

Changes

Turns out for double double LDBL_MANT_DIG == 106. This patch fixes the
constant. Should fix the ppc buildbot.

Previously:
#113235
#113237
#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 --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
 

@michaelrj-google
Copy link
Contributor Author

Planning to land this in the morning after it gets approved. If ppc owners need it sooner feel free to merge it for me.

@michaelrj-google michaelrj-google merged commit 4275a73 into llvm:main Oct 22, 2024
9 checks passed
@michaelrj-google michaelrj-google deleted the libcFixPPCDoubleDouble branch October 22, 2024 14:32
EricWF pushed a commit to efcs/llvm-project that referenced this pull request Oct 22, 2024
Turns out for double double LDBL_MANT_DIG == 106. This patch fixes the
constant. Should fix the ppc buildbot.

Previously:
llvm#113235
llvm#113237
llvm#91651
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants