From fe710250508e0710ac5db1fff1596ac5b092ab64 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 3 Aug 2006 20:36:43 +0000 Subject: [BZ #2182] * math/s_cacosh.c: Return values from positive branch. * math/s_cacoshf.c: Likewise. * math/s_cacoshl.c: Likewise. * sysvipc/msgrcv.c: Likewise. * include/sys/msg.h: Likewise. --- math/s_cacosh.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'math/s_cacosh.c') diff --git a/math/s_cacosh.c b/math/s_cacosh.c index e921f07..ada7ca5 100644 --- a/math/s_cacosh.c +++ b/math/s_cacosh.c @@ -80,6 +80,10 @@ __cacosh (__complex__ double x) __imag__ y += __imag__ x; res = __clog (y); + + /* We have to use the positive branch. */ + if (__real__ res < 0.0) + res = -res; } return res; -- cgit v1.1