sna: Add the Ofast option to the critical memcpy routines

Always enable gcc to fully optimize the core memcpy routines (provided
that optimisations are not entirely disabled, for instance for
debugging).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-06-29 21:56:13 +01:00
parent 84c190db33
commit 1d9941a7c0
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@
#endif
#if HAS_GCC(4, 5) && defined(__OPTIMIZE__)
#define fast_memcpy __attribute__((target("inline-all-stringops")))
#define fast_memcpy __attribute__((optimize("Ofast"))) __attribute__((target("inline-all-stringops")))
#else
#define fast_memcpy
#endif