mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Don't mark inline functions as static since it confuses the ICC compiler
This commit is contained in:
parent
3585ff585e
commit
9b0aaf5113
@ -73,21 +73,21 @@ struct TensorUInt128
|
|||||||
|
|
||||||
|
|
||||||
template <typename HL, typename LL, typename HR, typename LR>
|
template <typename HL, typename LL, typename HR, typename LR>
|
||||||
static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
||||||
bool operator == (const TensorUInt128<HL, LL>& lhs, const TensorUInt128<HR, LR>& rhs)
|
bool operator == (const TensorUInt128<HL, LL>& lhs, const TensorUInt128<HR, LR>& rhs)
|
||||||
{
|
{
|
||||||
return (lhs.high == rhs.high) & (lhs.low == rhs.low);
|
return (lhs.high == rhs.high) & (lhs.low == rhs.low);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename HL, typename LL, typename HR, typename LR>
|
template <typename HL, typename LL, typename HR, typename LR>
|
||||||
static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
||||||
bool operator != (const TensorUInt128<HL, LL>& lhs, const TensorUInt128<HR, LR>& rhs)
|
bool operator != (const TensorUInt128<HL, LL>& lhs, const TensorUInt128<HR, LR>& rhs)
|
||||||
{
|
{
|
||||||
return (lhs.high != rhs.high) | (lhs.low != rhs.low);
|
return (lhs.high != rhs.high) | (lhs.low != rhs.low);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename HL, typename LL, typename HR, typename LR>
|
template <typename HL, typename LL, typename HR, typename LR>
|
||||||
static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
||||||
bool operator >= (const TensorUInt128<HL, LL>& lhs, const TensorUInt128<HR, LR>& rhs)
|
bool operator >= (const TensorUInt128<HL, LL>& lhs, const TensorUInt128<HR, LR>& rhs)
|
||||||
{
|
{
|
||||||
if (lhs.high != rhs.high) {
|
if (lhs.high != rhs.high) {
|
||||||
@ -97,7 +97,7 @@ bool operator >= (const TensorUInt128<HL, LL>& lhs, const TensorUInt128<HR, LR>&
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename HL, typename LL, typename HR, typename LR>
|
template <typename HL, typename LL, typename HR, typename LR>
|
||||||
static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
||||||
bool operator < (const TensorUInt128<HL, LL>& lhs, const TensorUInt128<HR, LR>& rhs)
|
bool operator < (const TensorUInt128<HL, LL>& lhs, const TensorUInt128<HR, LR>& rhs)
|
||||||
{
|
{
|
||||||
if (lhs.high != rhs.high) {
|
if (lhs.high != rhs.high) {
|
||||||
@ -107,7 +107,7 @@ bool operator < (const TensorUInt128<HL, LL>& lhs, const TensorUInt128<HR, LR>&
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename HL, typename LL, typename HR, typename LR>
|
template <typename HL, typename LL, typename HR, typename LR>
|
||||||
static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
||||||
TensorUInt128<uint64_t, uint64_t> operator + (const TensorUInt128<HL, LL>& lhs, const TensorUInt128<HR, LR>& rhs)
|
TensorUInt128<uint64_t, uint64_t> operator + (const TensorUInt128<HL, LL>& lhs, const TensorUInt128<HR, LR>& rhs)
|
||||||
{
|
{
|
||||||
TensorUInt128<uint64_t, uint64_t> result(lhs.high + rhs.high, lhs.low + rhs.low);
|
TensorUInt128<uint64_t, uint64_t> result(lhs.high + rhs.high, lhs.low + rhs.low);
|
||||||
@ -118,7 +118,7 @@ TensorUInt128<uint64_t, uint64_t> operator + (const TensorUInt128<HL, LL>& lhs,
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename HL, typename LL, typename HR, typename LR>
|
template <typename HL, typename LL, typename HR, typename LR>
|
||||||
static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
||||||
TensorUInt128<uint64_t, uint64_t> operator - (const TensorUInt128<HL, LL>& lhs, const TensorUInt128<HR, LR>& rhs)
|
TensorUInt128<uint64_t, uint64_t> operator - (const TensorUInt128<HL, LL>& lhs, const TensorUInt128<HR, LR>& rhs)
|
||||||
{
|
{
|
||||||
TensorUInt128<uint64_t, uint64_t> result(lhs.high - rhs.high, lhs.low - rhs.low);
|
TensorUInt128<uint64_t, uint64_t> result(lhs.high - rhs.high, lhs.low - rhs.low);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user