Skip to content

Commit

Permalink
Add const attribute to fmin and fmax
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Jan 11, 2012
1 parent a47a831 commit e58ef0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions math/bits/mathcalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit e58ef0f

Please sign in to comment.