]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Make llround an alias for lround on 64-bit machines.
authorUlrich Drepper <drepper@redhat.com>
Wed, 26 Aug 2009 06:53:23 +0000 (23:53 -0700)
committerUlrich Drepper <drepper@redhat.com>
Wed, 26 Aug 2009 06:53:23 +0000 (23:53 -0700)
ChangeLog
sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [new file with mode: 0644]
sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c

index a97b7d9604ca1c6611178c078bd708d53d5713bd..e56e139dfd53c4359fcae9af35dfe155bbd52b17 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c b/sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
new file mode 100644 (file)
index 0000000..f7c9ea5
--- /dev/null
@@ -0,0 +1 @@
+/* The code is the same as lround.  Use an alias, see l_round.c.  */
index 2df169eada097dbf06ab7bcf6be76b52ed124e29..30ea5db7ccbf9f16fe46958833336698193d8089 100644 (file)
@@ -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"
@@ -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