Assume long double uses IEEE-754 128bit format
Details
Diff Detail
Event Timeline
Correctly specify large constants using UINT64_C. Adjust slightly by making the masks more explicit. Bail out if the mantissa format is not the expected size. Undef macros after using them.
lib/builtins/fp_lib.h | ||
---|---|---|
106 ↗ | (On Diff #7380) | What we need are the 2nd and 3rd word of sum1, so it should use Word_FullMask instead of Word_HiMask |
127 ↗ | (On Diff #7380) | In our implmentation of functions implemented, we define #QUAD_PRECISION and include this file first , and then check whether CRT_LDBL_128BIT has been defined. So this line will make all targets whose LDBL_MANT_DIG is not 113 fail. |
The line number of previous comment is wrong
lib/builtins/fp_lib.h | ||
---|---|---|
175 ↗ | (On Diff #7380) | What we need are the 2nd and 3rd word of sum1, so it should use Word_FullMask instead of Word_HiMask |
196 ↗ | (On Diff #7380) | In our implmentation of functions implemented, we define #QUAD_PRECISION and include this file first , and then check whether CRT_LDBL_128BIT has been defined. So this line will make all targets whose LDBL_MANT_DIG is not 113 fail. |