summaryrefslogtreecommitdiff
path: root/src/cairo-compiler-private.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-10-06 17:02:54 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2008-10-07 01:45:45 +0100
commit5e3fcb7934f568bb7e304a1c434a9370b693df17 (patch)
tree46f474c532f9cf7f0b128a45d1bcc54b40e118c3 /src/cairo-compiler-private.h
parent9430bf57ebc86c79e28128e54aeb5a194c9cad03 (diff)
downloadcairo-5e3fcb7934f568bb7e304a1c434a9370b693df17.tar.gz
[wideint] Declare the wideint arithmetic functions as const.
'const' is a stricter form of 'pure' in that functions declared with that attribute do not access any values other than their arguments (in contrast to 'pure' which is allowed to read from global memory).
Diffstat (limited to 'src/cairo-compiler-private.h')
-rw-r--r--src/cairo-compiler-private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-compiler-private.h b/src/cairo-compiler-private.h
index d772f7715..9e2b4f67d 100644
--- a/src/cairo-compiler-private.h
+++ b/src/cairo-compiler-private.h
@@ -113,8 +113,10 @@
#if __GNUC__ >= 3
#define cairo_pure __attribute__((pure))
+#define cairo_const __attribute__((const))
#else
#define cairo_pure
+#define cairo_const
#endif
#ifndef __GNUC__