diff --git a/ChangeLog b/ChangeLog index 289d46c7de..b597ce9643 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2016-05-26 Joseph Myers + [BZ #20151] + * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN + argument to itself before returning result. + (__ieee754_y0l): Likewise. + * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise. + (__ieee754_y1l). + * math/libm-test.inc (acosh_test_data): Add sNaN tests. (atan_test_data): Likewise. (ceil_test_data): Likewise. diff --git a/sysdeps/ieee754/ldbl-128/e_j0l.c b/sysdeps/ieee754/ldbl-128/e_j0l.c index c208916a79..ddc82143dc 100644 --- a/sysdeps/ieee754/ldbl-128/e_j0l.c +++ b/sysdeps/ieee754/ldbl-128/e_j0l.c @@ -683,7 +683,7 @@ __ieee754_j0l (long double x) if (! isfinite (x)) { if (x != x) - return x; + return x + x; else return 0.0L; } @@ -831,7 +831,7 @@ long double if (! isfinite (x)) { if (x != x) - return x; + return x + x; else return 0.0L; } diff --git a/sysdeps/ieee754/ldbl-128/e_j1l.c b/sysdeps/ieee754/ldbl-128/e_j1l.c index f5b04c073d..32652049ab 100644 --- a/sysdeps/ieee754/ldbl-128/e_j1l.c +++ b/sysdeps/ieee754/ldbl-128/e_j1l.c @@ -690,7 +690,7 @@ __ieee754_j1l (long double x) if (! isfinite (x)) { if (x != x) - return x; + return x + x; else return 0.0L; } @@ -849,7 +849,7 @@ __ieee754_y1l (long double x) if (! isfinite (x)) { if (x != x) - return x; + return x + x; else return 0.0L; }