]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add const attribute to fmin and fmax
authorUlrich Drepper <drepper@gmail.com>
Wed, 11 Jan 2012 02:10:28 +0000 (21:10 -0500)
committerUlrich Drepper <drepper@gmail.com>
Wed, 11 Jan 2012 02:10:28 +0000 (21:10 -0500)
ChangeLog
math/bits/mathcalls.h

index b137d4e2681da761cdd40b3d36dd26ef5fd634fe..c25ea20c7e24f698b76aec86ce6cee6e6a2b442d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
 
+       * 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.
index f433ddf79fe83ff55dfc757d69c46abecd3b82e3..207ab20b49c5b29a9fa169bc47a2e3c236c7a7e3 100644 (file)
@@ -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.  */