summaryrefslogtreecommitdiff
path: root/src/mpfr-impl.h
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2019-07-12 13:31:46 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2019-07-12 13:31:46 +0000
commit73cb72802fa39216c660314e4ec7fd713843220b (patch)
tree5ce91180412ca20fc9b3d0d5129ccb73b7a07ff5 /src/mpfr-impl.h
parent7d1033e1432ca45b4f5d308543b0d2cd8c388dee (diff)
downloadmpfr-73cb72802fa39216c660314e4ec7fd713843220b.tar.gz
Renamed MPFR_CONST_ATTR macro to MPFR_CONST_FUNCTION_ATTR in order to be
similar to the MPFR_{PURE,HOT,COLD}_FUNCTION_ATTR macro names. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13527 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/mpfr-impl.h')
-rw-r--r--src/mpfr-impl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mpfr-impl.h b/src/mpfr-impl.h
index fbf481996..36b8234ff 100644
--- a/src/mpfr-impl.h
+++ b/src/mpfr-impl.h
@@ -163,9 +163,9 @@ https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
#endif
#if __MPFR_GNUC(3,0) || __MPFR_ICC(8,1,0)
-# define MPFR_CONST_ATTR __attribute__ ((const))
+# define MPFR_CONST_FUNCTION_ATTR __attribute__ ((const))
#else
-# define MPFR_CONST_ATTR
+# define MPFR_CONST_FUNCTION_ATTR
#endif
#if __MPFR_GNUC(3,0) || __MPFR_ICC(8,1,0)
@@ -787,7 +787,7 @@ static double double_zero = 0.0;
external function, hoping that the compiler will not optimize. */
# ifdef volatile
__MPFR_DECLSPEC long double
- __gmpfr_longdouble_volatile (long double) MPFR_CONST_ATTR;
+ __gmpfr_longdouble_volatile (long double) MPFR_CONST_FUNCTION_ATTR;
# define LONGDOUBLE_VOLATILE(x) (__gmpfr_longdouble_volatile (x))
# define WANT_GMPFR_LONGDOUBLE_VOLATILE 1
# else