mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
[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.
This commit is contained in:
@ -80,6 +80,10 @@ __cacoshl (__complex__ long double x)
|
||||
__imag__ y += __imag__ x;
|
||||
|
||||
res = __clogl (y);
|
||||
|
||||
/* We have to use the positive branch. */
|
||||
if (__real__ res < 0.0)
|
||||
res = -res;
|
||||
}
|
||||
|
||||
return res;
|
||||
|
Reference in New Issue
Block a user