about summary refs log tree commit diff
path: root/math/bits
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabrielftg@linux.ibm.com>2019-09-05 17:06:03 -0300
committerGabriel F. T. Gomes <gabrielftg@linux.ibm.com>2019-09-05 19:20:29 -0300
commit1b7f04070bd94f259e2ed24d6fb76309d64fb164 (patch)
tree7ea160e905c343abc2cc84436d71e2172030db93 /math/bits
parentde18a7061c9bdff73d66502c55d6a3ea671fc6d9 (diff)
downloadglibc-1b7f04070bd94f259e2ed24d6fb76309d64fb164.tar.gz
glibc-1b7f04070bd94f259e2ed24d6fb76309d64fb164.tar.xz
glibc-1b7f04070bd94f259e2ed24d6fb76309d64fb164.zip
Use __attribute_pure__ macro in bits/mathcalls.h
When the const attribute of totalorder* functions was replaced with the
pure attribute, by commit ID ab41100bab12, 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.
Diffstat (limited to 'math/bits')
-rw-r--r--math/bits/mathcalls.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/math/bits/mathcalls.h b/math/bits/mathcalls.h
index 94690c3b42..4703b28fee 100644
--- a/math/bits/mathcalls.h
+++ b/math/bits/mathcalls.h
@@ -375,12 +375,12 @@ __MATHDECL_1 (int, canonicalize,, (_Mdouble_ *__cx, const _Mdouble_ *__x));
 /* Total order operation.  */
 __MATHDECL_1 (int, totalorder,, (const _Mdouble_ *__x,
 				 const _Mdouble_ *__y))
-     __attribute__ ((__pure__));
+     __attribute_pure__;
 
 /* Total order operation on absolute values.  */
 __MATHDECL_1 (int, totalordermag,, (const _Mdouble_ *__x,
 				    const _Mdouble_ *__y))
-     __attribute__ ((__pure__));
+     __attribute_pure__;
 
 /* Get NaN payload.  */
 __MATHCALL (getpayload,, (const _Mdouble_ *__x));