diff options
author | theraven <theraven@FreeBSD.org> | 2012-11-13 03:27:43 +0000 |
---|---|---|
committer | theraven <theraven@FreeBSD.org> | 2012-11-13 03:27:43 +0000 |
commit | 8af97236b44c01761e1294025653d7f19dac7dd9 (patch) | |
tree | b0b795ada355b89fa0679851158e12e7b0af551d /contrib/libc++/include/complex | |
parent | af2fb35f8e88c3065ae59da7ac18d1bd2a3aca56 (diff) | |
download | FreeBSD-src-8af97236b44c01761e1294025653d7f19dac7dd9.zip FreeBSD-src-8af97236b44c01761e1294025653d7f19dac7dd9.tar.gz |
Import new version of libc++ into base.
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 6f88152..07d3754 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())); |