mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-04 03:00:39 +08:00
fix bug #495: remove too aggressive EIGEN_FLATTEN_ATTRIB attribute
(after some benchmarking, it was not useful anymore)
This commit is contained in:
parent
e3ac608e41
commit
c73c3ec2f8
@ -527,7 +527,7 @@ struct gebp_kernel
|
|||||||
ResPacketSize = Traits::ResPacketSize
|
ResPacketSize = Traits::ResPacketSize
|
||||||
};
|
};
|
||||||
|
|
||||||
EIGEN_DONT_INLINE EIGEN_FLATTEN_ATTRIB
|
EIGEN_DONT_INLINE
|
||||||
void operator()(ResScalar* res, Index resStride, const LhsScalar* blockA, const RhsScalar* blockB, Index rows, Index depth, Index cols, ResScalar alpha,
|
void operator()(ResScalar* res, Index resStride, const LhsScalar* blockA, const RhsScalar* blockB, Index rows, Index depth, Index cols, ResScalar alpha,
|
||||||
Index strideA=-1, Index strideB=-1, Index offsetA=0, Index offsetB=0, RhsScalar* unpackedB = 0)
|
Index strideA=-1, Index strideB=-1, Index offsetA=0, Index offsetB=0, RhsScalar* unpackedB = 0)
|
||||||
{
|
{
|
||||||
|
@ -115,12 +115,6 @@
|
|||||||
#define EIGEN_MAKESTRING2(a) #a
|
#define EIGEN_MAKESTRING2(a) #a
|
||||||
#define EIGEN_MAKESTRING(a) EIGEN_MAKESTRING2(a)
|
#define EIGEN_MAKESTRING(a) EIGEN_MAKESTRING2(a)
|
||||||
|
|
||||||
#if EIGEN_GNUC_AT_LEAST(4,1) && !defined(__clang__) && !defined(__INTEL_COMPILER)
|
|
||||||
#define EIGEN_FLATTEN_ATTRIB __attribute__((flatten))
|
|
||||||
#else
|
|
||||||
#define EIGEN_FLATTEN_ATTRIB
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// EIGEN_STRONG_INLINE is a stronger version of the inline, using __forceinline on MSVC,
|
// EIGEN_STRONG_INLINE is a stronger version of the inline, using __forceinline on MSVC,
|
||||||
// but it still doesn't use GCC's always_inline. This is useful in (common) situations where MSVC needs forceinline
|
// but it still doesn't use GCC's always_inline. This is useful in (common) situations where MSVC needs forceinline
|
||||||
// but GCC is still doing fine with just inline.
|
// but GCC is still doing fine with just inline.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user