diff --git a/bench/benchGeometry.cpp b/bench/benchGeometry.cpp index 7a532a846..6e16c0331 100644 --- a/bench/benchGeometry.cpp +++ b/bench/benchGeometry.cpp @@ -25,7 +25,7 @@ struct func; template struct func { - 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 template struct func { - 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 template struct func { - 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());