aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/ieee754/dbl-64/wordsize-64
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-08-25 23:53:23 -0700
committerUlrich Drepper <drepper@redhat.com>2009-08-25 23:53:23 -0700
commitdeb13bcda9a63ea65a82df138d71c803f963c8a7 (patch)
tree5f713a5cabc3b32995565b067f4c4c4e43c5f069 /sysdeps/ieee754/dbl-64/wordsize-64
parent77a1e0873f98b57d9e50138b471be0d8db8da99f (diff)
downloadglibc-deb13bcda9a63ea65a82df138d71c803f963c8a7.tar
glibc-deb13bcda9a63ea65a82df138d71c803f963c8a7.tar.gz
glibc-deb13bcda9a63ea65a82df138d71c803f963c8a7.tar.bz2
glibc-deb13bcda9a63ea65a82df138d71c803f963c8a7.zip
Make llround an alias for lround on 64-bit machines.
Diffstat (limited to 'sysdeps/ieee754/dbl-64/wordsize-64')
-rw-r--r--sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c1
-rw-r--r--sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c13
2 files changed, 14 insertions, 0 deletions
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
index 0000000000..f7c9ea568f
--- /dev/null
+++ b/sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
@@ -0,0 +1 @@
+/* The code is the same as lround. Use an alias, see l_round.c. */
diff --git a/sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c b/sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c
index 2df169eada..30ea5db7cc 100644
--- a/sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c
+++ b/sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c
@@ -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