mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Revert change from 4e4d3f32d1 that broke BFloat16.h build with older compilers.
This commit is contained in:
@@ -551,16 +551,13 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 tanh(const bfloat16& a) {
|
||||
}
|
||||
#if EIGEN_HAS_CXX11_MATH
|
||||
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_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_USING_STD(atanhf);
|
||||
return bfloat16(atanhf(float(a)));
|
||||
return bfloat16(::atanhf(float(a)));
|
||||
}
|
||||
#endif
|
||||
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 floor(const bfloat16& a) {
|
||||
|
||||
Reference in New Issue
Block a user