From b27e24b8746b20d9ded426f202b79c3b7aeb953e Mon Sep 17 00:00:00 2001 From: "Richard B. Kreckel" Date: Wed, 21 Dec 2011 21:01:29 -0500 Subject: Fix sign errr in some cacosh results --- math/s_cacoshl.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'math/s_cacoshl.c') diff --git a/math/s_cacoshl.c b/math/s_cacoshl.c index 36f7a5f70e..b90b196959 100644 --- a/math/s_cacoshl.c +++ b/math/s_cacoshl.c @@ -74,17 +74,13 @@ __cacoshl (__complex__ long double x) y = __csqrtl (y); - if (__real__ x < 0.0) + if (signbit (__real__ x)) y = -y; __real__ y += __real__ x; __imag__ y += __imag__ x; res = __clogl (y); - - /* We have to use the positive branch. */ - if (__real__ res < 0.0) - res = -res; } return res; -- cgit 1.4.1