diff --git a/src/sna/compiler.h b/src/sna/compiler.h index eaabf833..c7231370 100644 --- a/src/sna/compiler.h +++ b/src/sna/compiler.h @@ -73,10 +73,8 @@ #define avx2 fast __attribute__((target("avx2,avx,sse4.2,sse2,fpmath=sse"))) #endif -#if HAS_GCC(4, 6) && defined(__OPTIMIZE__) -#define fast_memcpy __attribute__((optimize("Ofast"))) __attribute__((target("inline-all-stringops"))) -#elif HAS_GCC(4, 5) && defined(__OPTIMIZE__) -#define fast_memcpy __attribute__((target("inline-all-stringops"))) +#if HAS_GCC(4, 5) && defined(__OPTIMIZE__) +#define fast_memcpy fast __attribute__((target("inline-all-stringops"))) #else #define fast_memcpy #endif