Const allows more optimizations than pure

This commit is contained in:
Petteri.Aimonen 2012-08-05 16:16:12 +00:00
parent 40ef134f4d
commit 4ffed9b5ff
1 changed files with 2 additions and 2 deletions

View File

@ -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