diff options
Diffstat (limited to 'benchtests/bench-util.h')
-rw-r--r-- | benchtests/bench-util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/benchtests/bench-util.h b/benchtests/bench-util.h index 91d9089..66a677a 100644 --- a/benchtests/bench-util.h +++ b/benchtests/bench-util.h @@ -24,6 +24,12 @@ __v; \ }) +#if __GNUC_PREREQ (4, 4) || __glibc_has_attribute (__optimize__) +# define attribute_optimize(level) __attribute__ ((optimize (level))) +#else +# define attribute_optimize(level) +#endif + #ifndef START_ITER # define START_ITER (100000000) #endif |