diff options
author | Alexey Neyman <stilor@att.net> | 2022-02-14 08:11:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 08:11:42 (GMT) |
commit | 681aaef1f1ff39c341fdc529e0db2c14639a58d8 (patch) | |
tree | ce98c2b3d9648db065d27add325370392a35d584 /packages/glibc/2.17/0027-glibc-ppc64le-05.patch | |
parent | ba680a3e5b8c62a7c1554e71f6d09903dac95a2f (diff) | |
parent | 86c2982568de1ad4d4cc12a65b19231331484405 (diff) |
Merge pull request #1674 from stilor/master
Updates to make `ct-ng build-all` pass
Diffstat (limited to 'packages/glibc/2.17/0027-glibc-ppc64le-05.patch')
-rw-r--r-- | packages/glibc/2.17/0027-glibc-ppc64le-05.patch | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/packages/glibc/2.17/0027-glibc-ppc64le-05.patch b/packages/glibc/2.17/0027-glibc-ppc64le-05.patch index d089fda..9363f34 100644 --- a/packages/glibc/2.17/0027-glibc-ppc64le-05.patch +++ b/packages/glibc/2.17/0027-glibc-ppc64le-05.patch @@ -56,9 +56,16 @@ # (__mpn_construct_long_double): Fix test for overflow of high # mantissa and correct normalisation. Avoid undefined shift. # -diff -urN glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c ---- glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c 2014-05-27 19:13:56.000000000 -0500 -+++ glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c 2014-05-27 19:14:45.000000000 -0500 +--- +# sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c | 2 +# sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c | 34 +++-- +# sysdeps/ieee754/ldbl-128ibm/math_ldbl.h | 167 ++++++++++++++++++----------- +# sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c | 44 +++---- +# sysdeps/ieee754/ldbl-128ibm/printf_fphex.c | 14 +- +# 5 files changed, 155 insertions(+), 106 deletions(-) +# +--- a/sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c ++++ b/sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c @@ -243,7 +243,7 @@ We split the 113 bits of the mantissa into 5 24bit integers stored in a double array. */ @@ -68,9 +75,8 @@ diff -urN glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c glibc-2. ldbl_extract_mantissa (&ixd, &lxd, &exp, x); exp = exp - 23; /* This is faster than doing this in floating point, because we -diff -urN glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c ---- glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c 2014-05-27 19:13:56.000000000 -0500 -+++ glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c 2014-05-27 19:14:45.000000000 -0500 +--- a/sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c ++++ b/sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c @@ -36,6 +36,7 @@ union ibm_extended_long_double u; unsigned long long hi, lo; @@ -128,9 +134,8 @@ diff -urN glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c glibc-2.17- { /* we have a borrow from the hidden bit, so shift left 1. */ hi = 0x0ffffffffffffeLL | (lo >> 51); -diff -urN glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h ---- glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h 2014-05-27 19:13:56.000000000 -0500 -+++ glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h 2014-05-27 19:51:13.000000000 -0500 +--- a/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h ++++ b/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h @@ -13,77 +13,118 @@ the number before the decimal point and the second implicit bit as bit 53 of the mantissa. */ @@ -353,7 +358,7 @@ diff -urN glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h glibc-2.17 static inline void default_ldbl_unpack (long double l, double *a, double *aa) { -@@ -162,13 +203,13 @@ +@@ -165,13 +206,13 @@ *aa = xl; } @@ -369,9 +374,8 @@ diff -urN glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h glibc-2.17 if (__builtin_expect ((__builtin_fabs (a) < two52), 1)) { -diff -urN glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c ---- glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c 2014-05-27 19:13:56.000000000 -0500 -+++ glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c 2014-05-27 19:14:45.000000000 -0500 +--- a/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c ++++ b/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c @@ -70,9 +70,9 @@ else lzcount = __builtin_clzl ((long) val) + 32; @@ -458,9 +462,8 @@ diff -urN glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c glibc-2.17- return u.ld; } -diff -urN glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/printf_fphex.c glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/printf_fphex.c ---- glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/printf_fphex.c 2014-05-27 19:13:56.000000000 -0500 -+++ glibc-2.17-c758a686/sysdeps/ieee754/ldbl-128ibm/printf_fphex.c 2014-05-27 19:14:45.000000000 -0500 +--- a/sysdeps/ieee754/ldbl-128ibm/printf_fphex.c ++++ b/sysdeps/ieee754/ldbl-128ibm/printf_fphex.c @@ -43,15 +43,15 @@ lo <<= 1; \ /* The lower double is normalized separately from the upper. We \ |