The Bessel functions of the second type (Yn) are not defined for
negative input and should return NAN with the "invalid" exception
raised, in these cases. However, current code checks for infinity and
return zero, regardless of the sign. This error is exposed for long
double when linking with -lieee. Without this flag, the error is not
exposed, because the wrappers for these functions, which use
__kernel_standard functionality, return the correct value.
Tested for powerpc64le.
[BZ #21130]
* sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Return NAN
with the "invalid" exception raised when x is -Inf.
* sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
+2017-02-12 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
+
+ [BZ #21130]
+ * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Return NAN
+ with the "invalid" exception raised when x is -Inf.
+ * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
+
2017-02-10 Wilco Dijkstra <wdijkstr@arm.com>
* string/bits/string2.h (strchr): Remove define.
_Float128 xx, xinv, z, p, q, c, s, cc, ss;
if (! isfinite (x))
- {
- if (x != x)
- return x + x;
- else
- return 0;
- }
+ return 1 / (x + x * x);
if (x <= 0)
{
if (x < 0)
_Float128 xx, xinv, z, p, q, c, s, cc, ss;
if (! isfinite (x))
- {
- if (x != x)
- return x + x;
- else
- return 0;
- }
+ return 1 / (x + x * x);
if (x <= 0)
{
if (x < 0)