mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-29 07:14:12 +08:00
Revert change from 4e4d3f32d168ed9ce09d950f099a60ddcd11240f that broke BFloat16.h build with older compilers.
This commit is contained in:
parent
4700713faf
commit
6ea8091705
@ -551,16 +551,13 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 tanh(const bfloat16& a) {
|
|||||||
}
|
}
|
||||||
#if EIGEN_HAS_CXX11_MATH
|
#if EIGEN_HAS_CXX11_MATH
|
||||||
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 asinh(const bfloat16& a) {
|
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 asinh(const bfloat16& a) {
|
||||||
EIGEN_USING_STD(asinhf);
|
return bfloat16(::asinhf(float(a)));
|
||||||
return bfloat16(asinhf(float(a)));
|
|
||||||
}
|
}
|
||||||
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 acosh(const bfloat16& a) {
|
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 acosh(const bfloat16& a) {
|
||||||
EIGEN_USING_STD(acoshf);
|
return bfloat16(::acoshf(float(a)));
|
||||||
return bfloat16(acoshf(float(a)));
|
|
||||||
}
|
}
|
||||||
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 atanh(const bfloat16& a) {
|
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 atanh(const bfloat16& a) {
|
||||||
EIGEN_USING_STD(atanhf);
|
return bfloat16(::atanhf(float(a)));
|
||||||
return bfloat16(atanhf(float(a)));
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 floor(const bfloat16& a) {
|
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 floor(const bfloat16& a) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user