summaryrefslogtreecommitdiff
path: root/src/sna/compiler.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-12-24 15:17:06 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-12-24 21:31:06 +0000
commite764a52ee8f0c552e218b3110318be9ba06634ae (patch)
tree8fa1214efe36446439441cad2863b27c657fc3a0 /src/sna/compiler.h
parentf9f8535db6a9e3affba9ba2c2a9314dfe12ab270 (diff)
sna: Encourage large operations to be migrated to the GPU
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/compiler.h')
-rw-r--r--src/sna/compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/compiler.h b/src/sna/compiler.h
index bd84973b..364ea62f 100644
--- a/src/sna/compiler.h
+++ b/src/sna/compiler.h
@@ -34,12 +34,14 @@
#define noinline __attribute__((noinline))
#define fastcall __attribute__((regparm(3)))
#define must_check __attribute__((warn_unused_result))
+#define constant __attribute__((const))
#else
#define likely(expr) (expr)
#define unlikely(expr) (expr)
#define noinline
#define fastcall
#define must_check
+#define constant
#endif
#ifdef HAVE_VALGRIND