mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
bug #1744: fix compilation with MSVC 2017 and AVX512, plog1p/pexpm1 require plog/pexp, but the later was disabled on some compilers
This commit is contained in:
parent
c3f6fcf2c0
commit
2cb2915f90
@ -378,6 +378,19 @@ EIGEN_STRONG_INLINE Packet16f prsqrt<Packet16f>(const Packet16f& x) {
|
|||||||
return _mm512_rsqrt28_ps(x);
|
return _mm512_rsqrt28_ps(x);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(EIGEN_VECTORIZE_AVX512DQ)
|
||||||
|
template<> EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS EIGEN_UNUSED
|
||||||
|
Packet16f plog1p<Packet16f>(const Packet16f& _x) {
|
||||||
|
return generic_plog1p(_x);
|
||||||
|
}
|
||||||
|
|
||||||
|
template<> EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS EIGEN_UNUSED
|
||||||
|
Packet16f pexpm1<Packet16f>(const Packet16f& _x) {
|
||||||
|
return generic_expm1(_x);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -393,18 +406,6 @@ pcos<Packet16f>(const Packet16f& _x) {
|
|||||||
return pcos_float(_x);
|
return pcos_float(_x);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(EIGEN_VECTORIZE_AVX512DQ)
|
|
||||||
template<> EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS EIGEN_UNUSED
|
|
||||||
Packet16f plog1p<Packet16f>(const Packet16f& _x) {
|
|
||||||
return generic_plog1p(_x);
|
|
||||||
}
|
|
||||||
|
|
||||||
template<> EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS EIGEN_UNUSED
|
|
||||||
Packet16f pexpm1<Packet16f>(const Packet16f& _x) {
|
|
||||||
return generic_expm1(_x);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS EIGEN_UNUSED Packet16f
|
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS EIGEN_UNUSED Packet16f
|
||||||
ptanh<Packet16f>(const Packet16f& _x) {
|
ptanh<Packet16f>(const Packet16f& _x) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user