sna: Reuse compiler attribute fast to build fast_memcpy
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
0bcc3ef02c
commit
f2807d3b5e
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue