summaryrefslogtreecommitdiff
path: root/libquadmath/math/j1q.c
diff options
context:
space:
mode:
Diffstat (limited to 'libquadmath/math/j1q.c')
-rw-r--r--libquadmath/math/j1q.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libquadmath/math/j1q.c b/libquadmath/math/j1q.c
index 8a18e2779b2..eb599c949a9 100644
--- a/libquadmath/math/j1q.c
+++ b/libquadmath/math/j1q.c
@@ -836,8 +836,10 @@ y1q (__float128 x)
return -HUGE_VALQ + x;
}
xx = fabsq (x);
+ if (xx <= 0x1p-114)
+ return -TWOOPI / x;
if (xx <= 2.0Q)
- {
+ {
/* 0 <= x <= 2 */
z = xx * xx;
p = xx * neval (z, Y0_2N, NY0_2N) / deval (z, Y0_2D, NY0_2D);