From 7b1902cb3e64d340247638a8781770c3a4d850ce Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 1 Mar 2012 21:15:38 +0000 Subject: Improve erfc accuracy. --- sysdeps/ieee754/ldbl-128ibm/s_erfl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdeps/ieee754/ldbl-128ibm/s_erfl.c') diff --git a/sysdeps/ieee754/ldbl-128ibm/s_erfl.c b/sysdeps/ieee754/ldbl-128ibm/s_erfl.c index 85cdbe0..8868f7e 100644 --- a/sysdeps/ieee754/ldbl-128ibm/s_erfl.c +++ b/sysdeps/ieee754/ldbl-128ibm/s_erfl.c @@ -920,7 +920,8 @@ __erfcl (long double x) } u.value = x; u.parts32.w3 = 0; - u.parts32.w2 &= 0xffffe000; + u.parts32.w2 = 0; + u.parts32.w1 &= 0xf8000000; z = u.value; r = __ieee754_expl (-z * z - 0.5625) * __ieee754_expl ((z - x) * (z + x) + p); -- cgit v1.1