diff options
Diffstat (limited to 'math/s_cacoshf.c')
-rw-r--r-- | math/s_cacoshf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/math/s_cacoshf.c b/math/s_cacoshf.c index 3fc48bb617..a062ffc6f6 100644 --- a/math/s_cacoshf.c +++ b/math/s_cacoshf.c @@ -95,6 +95,10 @@ __cacoshf (__complex__ float x) + ro); __imag__ res = __ieee754_atan2f (__imag__ x + b, __real__ x + a); #endif + + /* We have to use the positive branch. */ + if (__real__ res < 0.0) + res = -res; } return res; |