summaryrefslogtreecommitdiff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-07-08 18:54:49 +0000
committerUlrich Drepper <drepper@redhat.com>2005-07-08 18:54:49 +0000
commit9b8a7277766106540cbf1d491090a0d1654f6861 (patch)
tree08f2330bbd954cabb6e731abb6eb7e95825f8b73 /sysdeps/generic
parent3eea24da17483f30eb090700061eddcbcba3b5bb (diff)
* include/fenv.h: Add libm_hidden_proto for fesetround and
feholdexcept. * sysdeps/alpha/fpu/feholdexcpt.c: Add libm_hidden_def. * sysdeps/alpha/fpu/fesetround.c: Likewise. * sysdeps/generic/feholdexcpt.c: Likewise. * sysdeps/generic/fesetround.c: Likewise. * sysdeps/i386/fpu/feholdexcpt.c: Likewise. * sysdeps/i386/fpu/fesetround.c: Likewise. * sysdeps/ia64/fpu/feholdexcpt.c: Likewise. * sysdeps/ia64/fpu/fesetround.c: Likewise. * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise. * sysdeps/powerpc/fpu/fesetround.c: Likewise. * sysdeps/s390/fpu/feholdexcpt.c: Likewise. * sysdeps/s390/fpu/fesetround.c: Likewise. * sysdeps/sh/sh4/fpu/feholdexcpt.c: Likewise. * sysdeps/sh/sh4/fpu/fesetround.c: Likewise. * sysdeps/sparc/fpu/feholdexcpt.c: Likewise. * sysdeps/sparc/fpu/fesetround.c: Likewise. * sysdeps/x86_64/fpu/feholdexcpt.c: Likewise. * sysdeps/x86_64/fpu/fesetround.c: Likewise. * sysdeps/generic/s_significand.c (__significand): Use __ilogb not ilogb. * sysdeps/generic/s_significandf.c (__significandf): Use __ilogbf not ilogbf.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/feholdexcpt.c3
-rw-r--r--sysdeps/generic/fesetround.c3
-rw-r--r--sysdeps/generic/s_significand.c2
-rw-r--r--sysdeps/generic/s_significandf.c4
4 files changed, 7 insertions, 5 deletions
diff --git a/sysdeps/generic/feholdexcpt.c b/sysdeps/generic/feholdexcpt.c
index 927a6dc95c..8680d1e492 100644
--- a/sysdeps/generic/feholdexcpt.c
+++ b/sysdeps/generic/feholdexcpt.c
@@ -1,5 +1,5 @@
/* Store current floating-point environment and clear exceptions.
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -25,5 +25,6 @@ feholdexcept (fenv_t *envp)
{
return 1; /* Signal failure. */
}
+libm_hidden_def (feholdexcept)
stub_warning (feholdexcept)
#include <stub-tag.h>
diff --git a/sysdeps/generic/fesetround.c b/sysdeps/generic/fesetround.c
index e5a27d2aa0..5b14826390 100644
--- a/sysdeps/generic/fesetround.c
+++ b/sysdeps/generic/fesetround.c
@@ -1,5 +1,5 @@
/* Set current rounding direction.
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -25,5 +25,6 @@ fesetround (int round)
{
return 1; /* Signal we are unable to set the direction. */
}
+libm_hidden_def (fesetround)
stub_warning (fesetround)
#include <stub-tag.h>
diff --git a/sysdeps/generic/s_significand.c b/sysdeps/generic/s_significand.c
index 4ab078c473..f95b6481c2 100644
--- a/sysdeps/generic/s_significand.c
+++ b/sysdeps/generic/s_significand.c
@@ -30,7 +30,7 @@ static char rcsid[] = "$NetBSD: s_significand.c,v 1.6 1995/05/10 20:48:11 jtc Ex
double x;
#endif
{
- return __ieee754_scalb(x,(double) -ilogb(x));
+ return __ieee754_scalb(x,(double) -__ilogb(x));
}
weak_alias (__significand, significand)
#ifdef NO_LONG_DOUBLE
diff --git a/sysdeps/generic/s_significandf.c b/sysdeps/generic/s_significandf.c
index 2893a4e1b7..cf5eb59efc 100644
--- a/sysdeps/generic/s_significandf.c
+++ b/sysdeps/generic/s_significandf.c
@@ -8,7 +8,7 @@
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
+ * software is freely granted, provided that this notice
* is preserved.
* ====================================================
*/
@@ -27,6 +27,6 @@ static char rcsid[] = "$NetBSD: s_significandf.c,v 1.3 1995/05/10 20:48:13 jtc E
float x;
#endif
{
- return __ieee754_scalbf(x,(float) -ilogbf(x));
+ return __ieee754_scalbf(x,(float) -__ilogbf(x));
}
weak_alias (__significandf, significandf)