Const allows more optimizations than pure
This commit is contained in:
parent
40ef134f4d
commit
4ffed9b5ff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue