mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-16 01:51:51 +08:00
Fix compiler versions for certain instructions on Power.
This commit is contained in:
parent
1c0a6cf228
commit
e4598fedbe
@ -256,7 +256,7 @@ struct packet_traits<int> : default_packet_traits {
|
||||
HasSub = 1,
|
||||
HasShift = 1,
|
||||
HasMul = 1,
|
||||
#ifdef _ARCH_PWR10
|
||||
#if defined(_ARCH_PWR10) && (EIGEN_COMP_LLVM || EIGEN_GNUC_STRICT_AT_LEAST(11,0,0))
|
||||
HasDiv = 1,
|
||||
#else
|
||||
HasDiv = 0,
|
||||
@ -1050,7 +1050,7 @@ template<> EIGEN_STRONG_INLINE Packet4f pdiv<Packet4f>(const Packet4f& a, const
|
||||
|
||||
template<> EIGEN_STRONG_INLINE Packet4i pdiv<Packet4i>(const Packet4i& a, const Packet4i& b)
|
||||
{
|
||||
#ifdef _ARCH_PWR10
|
||||
#if defined(_ARCH_PWR10) && (EIGEN_COMP_LLVM || EIGEN_GNUC_STRICT_AT_LEAST(11,0,0))
|
||||
return vec_div(a, b);
|
||||
#else
|
||||
EIGEN_UNUSED_VARIABLE(a);
|
||||
|
Loading…
x
Reference in New Issue
Block a user