From: Ulrich Drepper Date: Wed, 11 Jan 2012 02:10:28 +0000 (-0500) Subject: Add const attribute to fmin and fmax X-Git-Tag: glibc-2.16-tps~1068 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e58ef0f20437e121a06e0eb3d6c6c10c3630746e;p=thirdparty%2Fglibc.git Add const attribute to fmin and fmax --- diff --git a/ChangeLog b/ChangeLog index b137d4e2681..c25ea20c7e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2012-01-10 Ulrich Drepper + * math/bits/mathcalls.h: Add const attribute to fmin and fmax. + * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction. * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise. * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise. diff --git a/math/bits/mathcalls.h b/math/bits/mathcalls.h index f433ddf79fe..207ab20b49c 100644 --- a/math/bits/mathcalls.h +++ b/math/bits/mathcalls.h @@ -337,10 +337,10 @@ __MATHDECL (long long int,llround,, (_Mdouble_ __x)); __MATHCALL (fdim,, (_Mdouble_ __x, _Mdouble_ __y)); /* Return maximum numeric value from X and Y. */ -__MATHCALL (fmax,, (_Mdouble_ __x, _Mdouble_ __y)); +__MATHCALLX (fmax,, (_Mdouble_ __x, _Mdouble_ __y), (__const__)); /* Return minimum numeric value from X and Y. */ -__MATHCALL (fmin,, (_Mdouble_ __x, _Mdouble_ __y)); +__MATHCALLX (fmin,, (_Mdouble_ __x, _Mdouble_ __y), (__const__)); /* Classify given number. */