From 6f10289efb65e97917ebe42686f492a0037ec129 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 10 Oct 2013 19:11:30 +0000 Subject: Avoid ordered comparisons of NaNs in ldbl-128ibm acosl and asinl. --- sysdeps/ieee754/ldbl-128ibm/e_asinl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sysdeps/ieee754/ldbl-128ibm/e_asinl.c') diff --git a/sysdeps/ieee754/ldbl-128ibm/e_asinl.c b/sysdeps/ieee754/ldbl-128ibm/e_asinl.c index 99a5b85..dece118 100644 --- a/sysdeps/ieee754/ldbl-128ibm/e_asinl.c +++ b/sysdeps/ieee754/ldbl-128ibm/e_asinl.c @@ -134,6 +134,8 @@ __ieee754_asinl (long double x) long double a, t, w, p, q, c, r, s; int flag; + if (__glibc_unlikely (__isnanl (x))) + return x + x; flag = 0; a = __builtin_fabsl (x); if (a == 1.0L) /* |x|>= 1 */ -- cgit v1.1