summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_types.h
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2017-04-21 11:29:38 -0700
committerCedric Bail <cedric@osg.samsung.com>2017-04-21 11:29:38 -0700
commit8187e347416eb4f88c187837150cc41c11ae6bf3 (patch)
tree2079ed981679943519ac501c525a196504410567 /src/lib/eina/eina_types.h
parent3fb4bc336eb38a4539a122abd8f6c42ca37933c2 (diff)
eina: some architecture don't like prefetch on NULL apparently.
Diffstat (limited to 'src/lib/eina/eina_types.h')
-rw-r--r--src/lib/eina/eina_types.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/eina/eina_types.h b/src/lib/eina/eina_types.h
index 1031a40723..57e7518151 100644
--- a/src/lib/eina/eina_types.h
+++ b/src/lib/eina/eina_types.h
@@ -194,10 +194,10 @@
194# define EINA_LIKELY(exp) __builtin_expect((exp), 1) 194# define EINA_LIKELY(exp) __builtin_expect((exp), 1)
195# define EINA_SENTINEL __attribute__((__sentinel__)) 195# define EINA_SENTINEL __attribute__((__sentinel__))
196# ifndef __clang__ 196# ifndef __clang__
197# define EINA_PREFETCH(arg) __builtin_prefetch(arg) 197# define EINA_PREFETCH(arg) (arg ? __builtin_prefetch(arg) : (void) arg)
198# define EINA_PREFETCH_WRITE(arg) __builtin_prefetch(arg, 1) 198# define EINA_PREFETCH_WRITE(arg) (arg ? __builtin_prefetch(arg, 1) : (void) arg)
199# define EINA_PREFETCH_NOCACHE(arg) __builtin_prefetch(arg, 0, 0) 199# define EINA_PREFETCH_NOCACHE(arg) (arg ? __builtin_prefetch(arg, 0, 0) : (void) arg)
200# define EINA_PREFETCH_NOCACHE_WRITE(arg) __builtin_prefetch(arg, 1, 0) 200# define EINA_PREFETCH_NOCACHE_WRITE(arg) (arg ? __builtin_prefetch(arg, 1, 0) : (void) arg)
201# else 201# else
202/* LLVM Clang workaround (crash on compilation) */ 202/* LLVM Clang workaround (crash on compilation) */
203# define EINA_PREFETCH(arg) ((void) (arg)) 203# define EINA_PREFETCH(arg) ((void) (arg))