diff options
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r-- | sysdeps/ieee754/dbl-64/e_lgamma_r.c | 12 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/s_finite.c | 4 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/s_fpclassify.c | 3 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/s_isinf.c | 3 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/s_isnan.c | 3 | ||||
-rw-r--r-- | sysdeps/ieee754/flt-32/s_finitef.c | 4 | ||||
-rw-r--r-- | sysdeps/ieee754/flt-32/s_fpclassifyf.c | 3 | ||||
-rw-r--r-- | sysdeps/ieee754/flt-32/s_isinff.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/flt-32/s_isnanf.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-128/s_expm1l.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-128/s_finitel.c | 4 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-128/s_fpclassifyl.c | 3 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-128/s_isinfl.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-128/s_isnanl.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-96/s_finitel.c | 4 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-96/s_fpclassifyl.c | 3 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-96/s_isinfl.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-96/s_isnanl.c | 1 |
18 files changed, 27 insertions, 32 deletions
diff --git a/sysdeps/ieee754/dbl-64/e_lgamma_r.c b/sysdeps/ieee754/dbl-64/e_lgamma_r.c index 863eaa4362..cc44b048f4 100644 --- a/sysdeps/ieee754/dbl-64/e_lgamma_r.c +++ b/sysdeps/ieee754/dbl-64/e_lgamma_r.c @@ -175,7 +175,7 @@ static double zero= 0.00000000000000000000e+00; GET_HIGH_WORD(ix,x); ix &= 0x7fffffff; - if(ix<0x3fd00000) return sin(pi*x); + if(ix<0x3fd00000) return __sin(pi*x); y = -x; /* x is assume negative */ /* @@ -199,14 +199,14 @@ static double zero= 0.00000000000000000000e+00; } } switch (n) { - case 0: y = sin(pi*y); break; + case 0: y = __sin(pi*y); break; case 1: - case 2: y = cos(pi*(0.5-y)); break; + case 2: y = __cos(pi*(0.5-y)); break; case 3: - case 4: y = sin(pi*(one-y)); break; + case 4: y = __sin(pi*(one-y)); break; case 5: - case 6: y = -cos(pi*(y-1.5)); break; - default: y = sin(pi*(y-2.0)); break; + case 6: y = -__cos(pi*(y-1.5)); break; + default: y = __sin(pi*(y-2.0)); break; } return -y; } diff --git a/sysdeps/ieee754/dbl-64/s_finite.c b/sysdeps/ieee754/dbl-64/s_finite.c index 2317f4a105..90de0f9d11 100644 --- a/sysdeps/ieee754/dbl-64/s_finite.c +++ b/sysdeps/ieee754/dbl-64/s_finite.c @@ -22,8 +22,6 @@ static char rcsid[] = "$NetBSD: s_finite.c,v 1.8 1995/05/10 20:47:17 jtc Exp $"; #include "math.h" #include "math_private.h" -#undef __finite - #ifdef __STDC__ int __finite(double x) #else @@ -35,7 +33,7 @@ static char rcsid[] = "$NetBSD: s_finite.c,v 1.8 1995/05/10 20:47:17 jtc Exp $"; GET_HIGH_WORD(hx,x); return (int)((u_int32_t)((hx&0x7fffffff)-0x7ff00000)>>31); } -INTDEF(__finite) +hidden_def (__finite) weak_alias (__finite, finite) #ifdef NO_LONG_DOUBLE strong_alias (__finite, __finitel) diff --git a/sysdeps/ieee754/dbl-64/s_fpclassify.c b/sysdeps/ieee754/dbl-64/s_fpclassify.c index 8368ba4d23..b3a723ebcf 100644 --- a/sysdeps/ieee754/dbl-64/s_fpclassify.c +++ b/sysdeps/ieee754/dbl-64/s_fpclassify.c @@ -1,5 +1,5 @@ /* Return classification value corresponding to argument. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. @@ -41,3 +41,4 @@ __fpclassify (double x) return retval; } +libm_hidden_def (__fpclassify) diff --git a/sysdeps/ieee754/dbl-64/s_isinf.c b/sysdeps/ieee754/dbl-64/s_isinf.c index ab509a00ae..24b29ae013 100644 --- a/sysdeps/ieee754/dbl-64/s_isinf.c +++ b/sysdeps/ieee754/dbl-64/s_isinf.c @@ -25,10 +25,9 @@ __isinf (double x) lx |= -lx; return ~(lx >> 31) & (hx >> 30); } -INTDEF(__isinf) +hidden_def (__isinf) weak_alias (__isinf, isinf) #ifdef NO_LONG_DOUBLE strong_alias (__isinf, __isinfl) -INTDEF(__isinfl) weak_alias (__isinf, isinfl) #endif diff --git a/sysdeps/ieee754/dbl-64/s_isnan.c b/sysdeps/ieee754/dbl-64/s_isnan.c index 27f8565457..3a089e99a8 100644 --- a/sysdeps/ieee754/dbl-64/s_isnan.c +++ b/sysdeps/ieee754/dbl-64/s_isnan.c @@ -36,10 +36,9 @@ static char rcsid[] = "$NetBSD: s_isnan.c,v 1.8 1995/05/10 20:47:36 jtc Exp $"; hx = 0x7ff00000 - hx; return (int)(((u_int32_t)hx)>>31); } -INTDEF(__isnan) +hidden_def (__isnan) weak_alias (__isnan, isnan) #ifdef NO_LONG_DOUBLE strong_alias (__isnan, __isnanl) -INTDEF(__isnanl) weak_alias (__isnan, isnanl) #endif diff --git a/sysdeps/ieee754/flt-32/s_finitef.c b/sysdeps/ieee754/flt-32/s_finitef.c index 74019c763e..65767f8f93 100644 --- a/sysdeps/ieee754/flt-32/s_finitef.c +++ b/sysdeps/ieee754/flt-32/s_finitef.c @@ -25,8 +25,6 @@ static char rcsid[] = "$NetBSD: s_finitef.c,v 1.4 1995/05/10 20:47:18 jtc Exp $" #include "math.h" #include "math_private.h" -#undef __finitef - #ifdef __STDC__ int __finitef(float x) #else @@ -38,5 +36,5 @@ static char rcsid[] = "$NetBSD: s_finitef.c,v 1.4 1995/05/10 20:47:18 jtc Exp $" GET_FLOAT_WORD(ix,x); return (int)((u_int32_t)((ix&0x7fffffff)-0x7f800000)>>31); } -INTDEF(__finitef) +hidden_def (__finitef) weak_alias (__finitef, finitef) diff --git a/sysdeps/ieee754/flt-32/s_fpclassifyf.c b/sysdeps/ieee754/flt-32/s_fpclassifyf.c index f7f3b523a7..709bc2b01f 100644 --- a/sysdeps/ieee754/flt-32/s_fpclassifyf.c +++ b/sysdeps/ieee754/flt-32/s_fpclassifyf.c @@ -1,5 +1,5 @@ /* Return classification value corresponding to argument. - Copyright (C) 1997, 2000 Free Software Foundation, Inc. + Copyright (C) 1997, 2000, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. @@ -40,3 +40,4 @@ __fpclassifyf (float x) return retval; } +libm_hidden_def (__fpclassifyf) diff --git a/sysdeps/ieee754/flt-32/s_isinff.c b/sysdeps/ieee754/flt-32/s_isinff.c index 2bf2364426..03a95fcc0f 100644 --- a/sysdeps/ieee754/flt-32/s_isinff.c +++ b/sysdeps/ieee754/flt-32/s_isinff.c @@ -25,5 +25,5 @@ __isinff (float x) t |= -t; return ~(t >> 31) & (ix >> 30); } -INTDEF(__isinff) +hidden_def (__isinff) weak_alias (__isinff, isinff) diff --git a/sysdeps/ieee754/flt-32/s_isnanf.c b/sysdeps/ieee754/flt-32/s_isnanf.c index 93a3c3f200..4ac16c2b5f 100644 --- a/sysdeps/ieee754/flt-32/s_isnanf.c +++ b/sysdeps/ieee754/flt-32/s_isnanf.c @@ -38,5 +38,5 @@ static char rcsid[] = "$NetBSD: s_isnanf.c,v 1.4 1995/05/10 20:47:38 jtc Exp $"; ix = 0x7f800000 - ix; return (int)(((u_int32_t)(ix))>>31); } -INTDEF(__isnanf) +hidden_def (__isnanf) weak_alias (__isnanf, isnanf) diff --git a/sysdeps/ieee754/ldbl-128/s_expm1l.c b/sysdeps/ieee754/ldbl-128/s_expm1l.c index d3d85a4217..f373e1e6a9 100644 --- a/sysdeps/ieee754/ldbl-128/s_expm1l.c +++ b/sysdeps/ieee754/ldbl-128/s_expm1l.c @@ -157,5 +157,5 @@ __expm1l (long double x) x = px * qx + (px - 1.0); return x; } - +libm_hidden_def (__expm1l) weak_alias (__expm1l, expm1l) diff --git a/sysdeps/ieee754/ldbl-128/s_finitel.c b/sysdeps/ieee754/ldbl-128/s_finitel.c index a2372dc8d9..e3b0a2b990 100644 --- a/sysdeps/ieee754/ldbl-128/s_finitel.c +++ b/sysdeps/ieee754/ldbl-128/s_finitel.c @@ -25,8 +25,6 @@ static char rcsid[] = "$NetBSD: $"; #include "math.h" #include "math_private.h" -#undef __finitel - #ifdef __STDC__ int __finitel(long double x) #else @@ -39,5 +37,5 @@ static char rcsid[] = "$NetBSD: $"; return (int)((u_int64_t)((hx&0x7fffffffffffffffLL) -0x7fff000000000000LL)>>63); } -INTDEF(__finitel) +hidden_def (__finitel) weak_alias (__finitel, finitel) diff --git a/sysdeps/ieee754/ldbl-128/s_fpclassifyl.c b/sysdeps/ieee754/ldbl-128/s_fpclassifyl.c index eacfba9240..c66a2cb02b 100644 --- a/sysdeps/ieee754/ldbl-128/s_fpclassifyl.c +++ b/sysdeps/ieee754/ldbl-128/s_fpclassifyl.c @@ -1,5 +1,5 @@ /* Return classification value corresponding to argument. - Copyright (C) 1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1997, 1999, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997 and Jakub Jelinek <jj@ultra.linux.cz>, 1999. @@ -42,3 +42,4 @@ __fpclassifyl (long double x) return retval; } +libm_hidden_def (__fpclassifyl) diff --git a/sysdeps/ieee754/ldbl-128/s_isinfl.c b/sysdeps/ieee754/ldbl-128/s_isinfl.c index 2867e903f5..0b3526bd79 100644 --- a/sysdeps/ieee754/ldbl-128/s_isinfl.c +++ b/sysdeps/ieee754/ldbl-128/s_isinfl.c @@ -25,5 +25,5 @@ __isinfl (long double x) lx |= -lx; return ~(lx >> 63) & (hx >> 62); } -INTDEF(__isinfl) +hidden_def (__isinfl) weak_alias (__isinfl, isinfl) diff --git a/sysdeps/ieee754/ldbl-128/s_isnanl.c b/sysdeps/ieee754/ldbl-128/s_isnanl.c index ea701fefb8..267ec8d0aa 100644 --- a/sysdeps/ieee754/ldbl-128/s_isnanl.c +++ b/sysdeps/ieee754/ldbl-128/s_isnanl.c @@ -39,5 +39,5 @@ static char rcsid[] = "$NetBSD: $"; hx = 0x7fff000000000000LL - hx; return (int)((u_int64_t)hx>>63); } -INTDEF(__isnanl) +hidden_def (__isnanl) weak_alias (__isnanl, isnanl) diff --git a/sysdeps/ieee754/ldbl-96/s_finitel.c b/sysdeps/ieee754/ldbl-96/s_finitel.c index 3bbb21a2bb..437ea87f87 100644 --- a/sysdeps/ieee754/ldbl-96/s_finitel.c +++ b/sysdeps/ieee754/ldbl-96/s_finitel.c @@ -26,8 +26,6 @@ static char rcsid[] = "$NetBSD: $"; #include "math.h" #include "math_private.h" -#undef __finitel - #ifdef __STDC__ int __finitel(long double x) #else @@ -39,5 +37,5 @@ static char rcsid[] = "$NetBSD: $"; GET_LDOUBLE_EXP(exp,x); return (int)((u_int32_t)((exp&0x7fff)-0x7fff)>>31); } -INTDEF(__finitel) +hidden_def (__finitel) weak_alias (__finitel, finitel) diff --git a/sysdeps/ieee754/ldbl-96/s_fpclassifyl.c b/sysdeps/ieee754/ldbl-96/s_fpclassifyl.c index bd257485c0..7851c9ac7e 100644 --- a/sysdeps/ieee754/ldbl-96/s_fpclassifyl.c +++ b/sysdeps/ieee754/ldbl-96/s_fpclassifyl.c @@ -1,5 +1,5 @@ /* Return classification value corresponding to argument. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. Fixed by Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>. @@ -42,3 +42,4 @@ __fpclassifyl (long double x) return retval; } +libm_hidden_def (__fpclassifyl) diff --git a/sysdeps/ieee754/ldbl-96/s_isinfl.c b/sysdeps/ieee754/ldbl-96/s_isinfl.c index 919c2ff3f8..9583234efa 100644 --- a/sysdeps/ieee754/ldbl-96/s_isinfl.c +++ b/sysdeps/ieee754/ldbl-96/s_isinfl.c @@ -26,5 +26,5 @@ __isinfl (long double x) se &= 0x8000; return ~(lx >> 31) & (1 - (se >> 14)); } -INTDEF(__isinfl) +hidden_def (__isinfl) weak_alias (__isinfl, isinfl) diff --git a/sysdeps/ieee754/ldbl-96/s_isnanl.c b/sysdeps/ieee754/ldbl-96/s_isnanl.c index 0a7ff38433..5aa94149fb 100644 --- a/sysdeps/ieee754/ldbl-96/s_isnanl.c +++ b/sysdeps/ieee754/ldbl-96/s_isnanl.c @@ -41,4 +41,5 @@ static char rcsid[] = "$NetBSD: $"; se = 0xfffe - se; return (int)(((u_int32_t)(se))>>31); } +hidden_def (__isnanl) weak_alias (__isnanl, isnanl) |