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:
parent
84c190db33
commit
1d9941a7c0
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue