diff options
author | Paul E. Murphy <murphyp@linux.vnet.ibm.com> | 2016-09-02 11:01:07 -0500 |
---|---|---|
committer | Paul E. Murphy <murphyp@linux.vnet.ibm.com> | 2016-09-13 15:33:59 -0500 |
commit | 02bbfb414f367c73196e6f23fa7435a08c92449f (patch) | |
tree | 5f70a6d722dbdb1d716f6cf4b34fd7ca50e62c80 /sysdeps/ieee754/ldbl-128/e_rem_pio2l.c | |
parent | fd37b5a78ab215ea2599250ec345e25545410bce (diff) | |
download | glibc-02bbfb414f367c73196e6f23fa7435a08c92449f.tar.gz glibc-02bbfb414f367c73196e6f23fa7435a08c92449f.tar.xz glibc-02bbfb414f367c73196e6f23fa7435a08c92449f.zip |
ldbl-128: Use L(x) macro for long double constants
This runs the attached sed script against these files using a regex which aggressively matches long double literals when not obviously part of a comment. Likewise, 5 digit or less integral constants are replaced with integer constants, excepting the two cases of 0 used in large tables, which are also the only integral values of the form x.0*E0L encountered within these converted files. Likewise, -L(x) is transformed into L(-x). Naturally, the script has a few minor hiccups which are more clearly remedied via the attached fixup patch. Such hiccups include, context-sensitive promotion to a real type, and munging constants inside harder to detect comment blocks.
Diffstat (limited to 'sysdeps/ieee754/ldbl-128/e_rem_pio2l.c')
-rw-r--r-- | sysdeps/ieee754/ldbl-128/e_rem_pio2l.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/ieee754/ldbl-128/e_rem_pio2l.c b/sysdeps/ieee754/ldbl-128/e_rem_pio2l.c index 4a580b3c56..988d12e5b0 100644 --- a/sysdeps/ieee754/ldbl-128/e_rem_pio2l.c +++ b/sysdeps/ieee754/ldbl-128/e_rem_pio2l.c @@ -186,11 +186,11 @@ static const int32_t two_over_pi[] = { static const _Float128 c[] = { /* 113 bits of pi/2 */ #define PI_2_1 c[0] - 0x1.921fb54442d18469898cc51701b8p+0L, + L(0x1.921fb54442d18469898cc51701b8p+0), /* pi/2 - PI_2_1 */ #define PI_2_1t c[1] - 0x3.9a252049c1114cf98e804177d4c8p-116L, + L(0x3.9a252049c1114cf98e804177d4c8p-116), }; int32_t __ieee754_rem_pio2l(_Float128 x, _Float128 *y) |