aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri.Aimonen <Petteri.Aimonen@gmail.com>2012-08-05 16:16:12 +0000
committerPetteri.Aimonen <Petteri.Aimonen@gmail.com>2012-08-05 16:16:12 +0000
commit4ffed9b5ff9a6432bf6d1d690e64d4d84d4361c1 (patch)
treef31c2a89dd71fb8e90b8e03233108455434d3a35
parent40ef134f4d9f880a4f8848b1ac36ba993d9afa8c (diff)
downloadlibfixmath-4ffed9b5ff9a6432bf6d1d690e64d4d84d4361c1.tar.gz
Const allows more optimizations than pure
-rw-r--r--libfixmath/fix16.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libfixmath/fix16.h b/libfixmath/fix16.h
index 1508aaf..bab7254 100644
--- a/libfixmath/fix16.h
+++ b/libfixmath/fix16.h
@@ -12,9 +12,9 @@ extern "C"
#ifndef FIXMATH_FUNC_ATTRS
# ifdef __GNUC__
# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 6)
-# define FIXMATH_FUNC_ATTRS __attribute__((leaf, nothrow, pure))
+# define FIXMATH_FUNC_ATTRS __attribute__((leaf, nothrow, const))
# else
-# define FIXMATH_FUNC_ATTRS __attribute__((nothrow, pure))
+# define FIXMATH_FUNC_ATTRS __attribute__((nothrow, const))
# endif
# else
# define FIXMATH_FUNC_ATTRS