Skip to content

Commit

Permalink
Make llround an alias for lround on 64-bit machines.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Aug 26, 2009
1 parent 77a1e08 commit deb13bc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2009-08-25 Ulrich Drepper <drepper@redhat.com>

* sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
* sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.

* sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file

* sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
Expand Down
1 change: 1 addition & 0 deletions sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* The code is the same as lround. Use an alias, see l_round.c. */
13 changes: 13 additions & 0 deletions sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */

#define llround __hidden_llround
#define __llround __hidden___llround

#include <math.h>

#include "math_private.h"
Expand Down Expand Up @@ -65,3 +68,13 @@ weak_alias (__lround, lround)
strong_alias (__lround, __lroundl)
weak_alias (__lround, lroundl)
#endif

/* long long has the same width as long on 64-bit machines. */
#undef llround
#undef __llround
strong_alias (__lround, __llround)
weak_alias (__lround, llround)
#ifdef NO_LONG_DOUBLE
strong_alias (__lround, __llroundl)
weak_alias (__lround, llroundl)
#endif

0 comments on commit deb13bc

Please sign in to comment.