From 4ffed9b5ff9a6432bf6d1d690e64d4d84d4361c1 Mon Sep 17 00:00:00 2001 From: "Petteri.Aimonen" Date: Sun, 5 Aug 2012 16:16:12 +0000 Subject: Const allows more optimizations than pure --- libfixmath/fix16.h | 4 ++-- 1 file 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 -- cgit v1.2.3