Skip to content

Commit

Permalink
[libc] Fix long double is double double const (#113258)
Browse files Browse the repository at this point in the history
Turns out for double double LDBL_MANT_DIG == 106. This patch fixes the
constant. Should fix the ppc buildbot.

Previously:
#113235
#113237
#91651
  • Loading branch information
michaelrj-google authored Oct 22, 2024
1 parent 6512a8d commit 4275a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/src/__support/macros/properties/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4275a73

Please sign in to comment.