diff options
| author | David Chisnall <theraven@FreeBSD.org> | 2012-11-13 03:27:43 +0000 |
|---|---|---|
| committer | David Chisnall <theraven@FreeBSD.org> | 2012-11-13 03:27:43 +0000 |
| commit | 1e0896ace6d828dcdf2675db28ccd4a8e954a438 (patch) | |
| tree | b0b795ada355b89fa0679851158e12e7b0af551d /contrib/libc++/include/complex | |
| parent | 0e26b6ebf91c1342dc9cdc59b0fe2e96368a4895 (diff) | |
| parent | 3b5257a34b8cc9da481af474449a5d7cfac88d0d (diff) | |
Notes
Diffstat (limited to 'contrib/libc++/include/complex')
| -rw-r--r-- | contrib/libc++/include/complex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/libc++/include/complex b/contrib/libc++/include/complex index 6f8815298ca6..07d3754658fb 100644 --- a/contrib/libc++/include/complex +++ b/contrib/libc++/include/complex @@ -1249,10 +1249,12 @@ acosh(const complex<_Tp>& __x) if (isnan(__x.imag())) return complex<_Tp>(abs(__x.real()), __x.imag()); if (isinf(__x.imag())) + { if (__x.real() > 0) return complex<_Tp>(__x.real(), copysign(__pi * _Tp(0.25), __x.imag())); else return complex<_Tp>(-__x.real(), copysign(__pi * _Tp(0.75), __x.imag())); + } if (__x.real() < 0) return complex<_Tp>(-__x.real(), copysign(__pi, __x.imag())); return complex<_Tp>(__x.real(), copysign(_Tp(0), __x.imag())); |
