Dimitry Andric: Silence some miscellaneous warnings.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@167493 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9bae2a9dc5
commit
0919dbaab3
@ -1202,7 +1202,9 @@ fdim(_A1 __x, _A2 __y) _NOEXCEPT
|
|||||||
// fma
|
// fma
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY float fmaf(float __x, float __y, float __z) _NOEXCEPT {return (float)((double)__x*__y + __z);}
|
inline _LIBCPP_INLINE_VISIBILITY float fmaf(float __x, float __y, float __z) _NOEXCEPT {return (float)((double)__x*__y + __z);}
|
||||||
|
#ifndef FP_FAST_FMAF
|
||||||
#define FP_FAST_FMAF
|
#define FP_FAST_FMAF
|
||||||
|
#endif
|
||||||
|
|
||||||
using ::fma;
|
using ::fma;
|
||||||
|
|
||||||
|
@ -1249,10 +1249,12 @@ acosh(const complex<_Tp>& __x)
|
|||||||
if (isnan(__x.imag()))
|
if (isnan(__x.imag()))
|
||||||
return complex<_Tp>(abs(__x.real()), __x.imag());
|
return complex<_Tp>(abs(__x.real()), __x.imag());
|
||||||
if (isinf(__x.imag()))
|
if (isinf(__x.imag()))
|
||||||
|
{
|
||||||
if (__x.real() > 0)
|
if (__x.real() > 0)
|
||||||
return complex<_Tp>(__x.real(), copysign(__pi * _Tp(0.25), __x.imag()));
|
return complex<_Tp>(__x.real(), copysign(__pi * _Tp(0.25), __x.imag()));
|
||||||
else
|
else
|
||||||
return complex<_Tp>(-__x.real(), copysign(__pi * _Tp(0.75), __x.imag()));
|
return complex<_Tp>(-__x.real(), copysign(__pi * _Tp(0.75), __x.imag()));
|
||||||
|
}
|
||||||
if (__x.real() < 0)
|
if (__x.real() < 0)
|
||||||
return complex<_Tp>(-__x.real(), copysign(__pi, __x.imag()));
|
return complex<_Tp>(-__x.real(), copysign(__pi, __x.imag()));
|
||||||
return complex<_Tp>(__x.real(), copysign(_Tp(0), __x.imag()));
|
return complex<_Tp>(__x.real(), copysign(_Tp(0), __x.imag()));
|
||||||
|
@ -43,4 +43,4 @@ template <> struct _LIBCPP_VISIBLE hash<char *>
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif _LIBCPP_EXT_HASH
|
#endif // _LIBCPP_EXT_HASH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user