Use __attribute_pure__ macro in bits/mathcalls.h

When the const attribute of totalorder* functions was replaced with the
pure attribute, by commit ID ab41100bab, it did not use the
__attribute_pure__ macro, but the __attribute__ ((__pure__)) statement.
All other uses of the pure attribute in glibc use the macro.

Tested for powerpc64le.
This commit is contained in:
Gabriel F. T. Gomes 2019-09-05 17:06:03 -03:00
parent de18a7061c
commit 1b7f04070b

View File

@ -375,12 +375,12 @@ __MATHDECL_1 (int, canonicalize,, (_Mdouble_ *__cx, const _Mdouble_ *__x));
/* Total order operation. */ /* Total order operation. */
__MATHDECL_1 (int, totalorder,, (const _Mdouble_ *__x, __MATHDECL_1 (int, totalorder,, (const _Mdouble_ *__x,
const _Mdouble_ *__y)) const _Mdouble_ *__y))
__attribute__ ((__pure__)); __attribute_pure__;
/* Total order operation on absolute values. */ /* Total order operation on absolute values. */
__MATHDECL_1 (int, totalordermag,, (const _Mdouble_ *__x, __MATHDECL_1 (int, totalordermag,, (const _Mdouble_ *__x,
const _Mdouble_ *__y)) const _Mdouble_ *__y))
__attribute__ ((__pure__)); __attribute_pure__;
/* Get NaN payload. */ /* Get NaN payload. */
__MATHCALL (getpayload,, (const _Mdouble_ *__x)); __MATHCALL (getpayload,, (const _Mdouble_ *__x));