mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-11-21 03:11:25 +08:00
replaced compiler specific __attribute__((noinline)) by EIGEN_DONT_INLINE
This commit is contained in:
parent
22e6741da9
commit
6300e8ca02
@ -25,7 +25,7 @@ struct func;
|
||||
template <class res, class arg1, class arg2>
|
||||
struct func<res, arg1, arg2, TV>
|
||||
{
|
||||
static __attribute__ ((noinline)) res run( arg1& a1, arg2& a2 )
|
||||
static EIGEN_DONT_INLINE res run( arg1& a1, arg2& a2 )
|
||||
{
|
||||
asm ("");
|
||||
return a1 * a2;
|
||||
@ -35,7 +35,7 @@ struct func<res, arg1, arg2, TV>
|
||||
template <class res, class arg1, class arg2>
|
||||
struct func<res, arg1, arg2, TMATV>
|
||||
{
|
||||
static __attribute__ ((noinline)) res run( arg1& a1, arg2& a2 )
|
||||
static EIGEN_DONT_INLINE res run( arg1& a1, arg2& a2 )
|
||||
{
|
||||
asm ("");
|
||||
return a1.matrix() * a2;
|
||||
@ -45,7 +45,7 @@ struct func<res, arg1, arg2, TMATV>
|
||||
template <class res, class arg1, class arg2>
|
||||
struct func<res, arg1, arg2, TMATVMAT>
|
||||
{
|
||||
static __attribute__ ((noinline)) res run( arg1& a1, arg2& a2 )
|
||||
static EIGEN_DONT_INLINE res run( arg1& a1, arg2& a2 )
|
||||
{
|
||||
asm ("");
|
||||
return res(a1.matrix() * a2.matrix());
|
||||
|
Loading…
Reference in New Issue
Block a user