summaryrefslogtreecommitdiff
path: root/libm/powerpc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-17 00:01:09 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-17 00:01:09 +0000
commit9cc29786d72e56085fc61473bd51e8829dc17bad (patch)
treecfb416a7cd67c563d31aae44b949427dee97dfdc /libm/powerpc
parent3f87a95da89a18c428efbeb67268b5201da89281 (diff)
All math related relocs gone
Diffstat (limited to 'libm/powerpc')
-rw-r--r--libm/powerpc/s_ceil.c3
-rw-r--r--libm/powerpc/s_copysign.c2
-rw-r--r--libm/powerpc/s_floor.c3
-rw-r--r--libm/powerpc/s_frexp.c3
-rw-r--r--libm/powerpc/s_ldexp.c3
-rw-r--r--libm/powerpc/s_logb.c3
-rw-r--r--libm/powerpc/s_modf.c2
-rw-r--r--libm/powerpc/s_nearbyint.c2
-rw-r--r--libm/powerpc/s_rint.c3
-rw-r--r--libm/powerpc/s_round.c2
-rw-r--r--libm/powerpc/s_trunc.c2
-rw-r--r--libm/powerpc/w_scalb.c2
12 files changed, 24 insertions, 6 deletions
diff --git a/libm/powerpc/s_ceil.c b/libm/powerpc/s_ceil.c
index f6680eedf..a9d5a5b22 100644
--- a/libm/powerpc/s_ceil.c
+++ b/libm/powerpc/s_ceil.c
@@ -48,6 +48,7 @@ typedef union
* Ceil(x) returns the smallest integer not less than x. *
*******************************************************************************/
+libm_hidden_proto(ceil)
double ceil ( double x )
{
DblInHex xInHex,OldEnvironment;
@@ -108,4 +109,4 @@ double ceil ( double x )
*******************************************************************************/
return ( x );
}
-
+libm_hidden_def(ceil)
diff --git a/libm/powerpc/s_copysign.c b/libm/powerpc/s_copysign.c
index d3fb5f40b..ece2a3dde 100644
--- a/libm/powerpc/s_copysign.c
+++ b/libm/powerpc/s_copysign.c
@@ -34,6 +34,7 @@
* suggested in the IEEE standard 754. *
*******************************************************************************/
+libm_hidden_proto(copysign)
double copysign ( double arg2, double arg1 )
{
union
@@ -54,3 +55,4 @@ double copysign ( double arg2, double arg1 )
return y.dbl;
}
+libm_hidden_def(copysign)
diff --git a/libm/powerpc/s_floor.c b/libm/powerpc/s_floor.c
index 0ddbb9b66..c5a33cfb7 100644
--- a/libm/powerpc/s_floor.c
+++ b/libm/powerpc/s_floor.c
@@ -48,6 +48,7 @@ typedef union
* Floor(x) returns the largest integer not greater than x. *
*******************************************************************************/
+libm_hidden_proto(floor)
double floor ( double x )
{
DblInHex xInHex,OldEnvironment;
@@ -108,4 +109,4 @@ double floor ( double x )
*******************************************************************************/
return ( x );
}
-
+libm_hidden_def(floor)
diff --git a/libm/powerpc/s_frexp.c b/libm/powerpc/s_frexp.c
index 7c998f81a..001aaf708 100644
--- a/libm/powerpc/s_frexp.c
+++ b/libm/powerpc/s_frexp.c
@@ -39,6 +39,7 @@ typedef union
double dbl;
} DblInHex;
+libm_hidden_proto(frexp)
double frexp ( double value, int *eptr )
{
DblInHex argument;
@@ -61,4 +62,4 @@ double frexp ( double value, int *eptr )
argument.words.hi = ( argument.words.hi & 0x800fffff ) | 0x3fe00000;
return argument.dbl;
}
-
+libm_hidden_def(frexp)
diff --git a/libm/powerpc/s_ldexp.c b/libm/powerpc/s_ldexp.c
index 7e52352ae..10100d7c2 100644
--- a/libm/powerpc/s_ldexp.c
+++ b/libm/powerpc/s_ldexp.c
@@ -37,6 +37,7 @@ typedef union
double dbl;
} DblInHex;
+libm_hidden_proto(ldexp)
double ldexp ( double value, int exp )
{
if ( exp > SHRT_MAX )
@@ -45,4 +46,4 @@ double ldexp ( double value, int exp )
exp = -SHRT_MAX;
return scalb ( value, exp );
}
-
+libm_hidden_def(ldexp)
diff --git a/libm/powerpc/s_logb.c b/libm/powerpc/s_logb.c
index 3caecd95f..c3c6d00a8 100644
--- a/libm/powerpc/s_logb.c
+++ b/libm/powerpc/s_logb.c
@@ -60,6 +60,7 @@ static const DblInHex minusInf = {{ 0xFFF00000, 0x00000000 }};
********************************************************************************
*******************************************************************************/
+libm_hidden_proto(logb)
double logb ( double x )
{
DblInHex xInHex;
@@ -102,4 +103,4 @@ double logb ( double x )
return ( xInHex.dbl - klTod );
}
}
-
+libm_hidden_def(logb)
diff --git a/libm/powerpc/s_modf.c b/libm/powerpc/s_modf.c
index cb8338a90..b9d69445d 100644
--- a/libm/powerpc/s_modf.c
+++ b/libm/powerpc/s_modf.c
@@ -280,6 +280,7 @@ long int roundtol ( double x )
* modf is the double implementation. *
*******************************************************************************/
+libm_hidden_proto(modf)
double modf ( double x, double *iptr )
{
register double OldEnvironment, xtrunc;
@@ -340,3 +341,4 @@ double modf ( double x, double *iptr )
return ( argument.dbl );
}
}
+libm_hidden_def(modf)
diff --git a/libm/powerpc/s_nearbyint.c b/libm/powerpc/s_nearbyint.c
index f2d7ded35..068e21378 100644
--- a/libm/powerpc/s_nearbyint.c
+++ b/libm/powerpc/s_nearbyint.c
@@ -15,6 +15,7 @@
static const double twoTo52 = 4503599627370496.0;
+libm_hidden_proto(nearbyint)
double nearbyint ( double x )
{
double y;
@@ -34,3 +35,4 @@ double nearbyint ( double x )
asm ("mtfsf 255,%0" : /*NULLOUT*/ : /*IN*/ "f" ( OldEnvironment ));
return ( y );
}
+libm_hidden_def(nearbyint)
diff --git a/libm/powerpc/s_rint.c b/libm/powerpc/s_rint.c
index c229515c4..dd2ae585e 100644
--- a/libm/powerpc/s_rint.c
+++ b/libm/powerpc/s_rint.c
@@ -70,6 +70,7 @@ static const double doubleToLong = 4503603922337792.0; // 2^52
static const DblInHex Huge = {{ 0x7FF00000, 0x00000000 }};
static const DblInHex TOWARDZERO = {{ 0x00000000, 0x00000001 }};
+libm_hidden_proto(rint)
/*******************************************************************************
* *
* The function rint rounds its double argument to integral value *
@@ -155,4 +156,4 @@ double rint ( double x )
*******************************************************************************/
return ( x );
}
-
+libm_hidden_def(rint)
diff --git a/libm/powerpc/s_round.c b/libm/powerpc/s_round.c
index a0f72ebe3..62d5936d9 100644
--- a/libm/powerpc/s_round.c
+++ b/libm/powerpc/s_round.c
@@ -29,6 +29,7 @@ static const double twoTo52 = 4503599627370496.0;
* *
*******************************************************************************/
+libm_hidden_proto(round)
double round ( double x )
{
DblInHex argument, OldEnvironment;
@@ -111,3 +112,4 @@ double round ( double x )
*******************************************************************************/
return ( x );
}
+libm_hidden_def(round)
diff --git a/libm/powerpc/s_trunc.c b/libm/powerpc/s_trunc.c
index 7db7606b6..f793992a7 100644
--- a/libm/powerpc/s_trunc.c
+++ b/libm/powerpc/s_trunc.c
@@ -27,6 +27,7 @@ static const double twoTo52 = 4503599627370496.0;
* *
*******************************************************************************/
+libm_hidden_proto(trunc)
double trunc ( double x )
{
DblInHex argument,OldEnvironment;
@@ -85,3 +86,4 @@ double trunc ( double x )
*******************************************************************************/
return ( x );
}
+libm_hidden_def(trunc)
diff --git a/libm/powerpc/w_scalb.c b/libm/powerpc/w_scalb.c
index fe23ece53..e847fc78a 100644
--- a/libm/powerpc/w_scalb.c
+++ b/libm/powerpc/w_scalb.c
@@ -50,6 +50,7 @@ static const double twoToM1022 = 2.225073858507201383e-308; // 0x1p-1022
Calls: none.
***********************************************************************/
+libm_hidden_proto(scalb)
double scalb ( double x, int n )
{
DblInHex xInHex;
@@ -85,3 +86,4 @@ double scalb ( double x, int n )
xInHex.words.hi = ( ( unsigned long ) ( n + 1023 ) ) << 20;
return ( x * xInHex.dbl );
}
+libm_hidden_def(scalb)