summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-03-07 20:15:39 +0000
committerEric Andersen <andersen@codepoet.org>2005-03-07 20:15:39 +0000
commit7036f928bfaf620eb05b456ce4f7f7b2dd1e001d (patch)
tree58ac33da761f6f0a5f6c143912f1ccadfd110359
parent0686404653d9b5e23de8de2224382d64cd8ee532 (diff)
Disable float wrappers for functions that are not presently
implemented in libm
-rw-r--r--libm/float_wrappers.c46
1 files changed, 31 insertions, 15 deletions
diff --git a/libm/float_wrappers.c b/libm/float_wrappers.c
index d2b43afaf..9e8256780 100644
--- a/libm/float_wrappers.c
+++ b/libm/float_wrappers.c
@@ -27,9 +27,22 @@
/* For the time being, do _NOT_ implement these functions
* that are defined by SuSv3 */
#if 0
+float exp2f(float);
+float fmaf(float, float, float);
+float fmaxf(float, float);
+float fminf(float, float);
+float fdimf(float, float);
long long llrintf(float);
long long llroundf(float);
+long lroundf(float);
+float log2f(float);
+long lrintf(float);
float nexttowardf(float, long double);
+float remquof(float, float, int *);
+float roundf(float);
+float scalblnf(float, long);
+float truncf(float);
+float tgammaf(float);
#endif
/* Implement the following, as defined by SuSv3 */
@@ -48,15 +61,10 @@ float cosf(float);
float coshf(float);
float erfcf(float);
float erff(float);
-float exp2f(float);
float expf(float);
float expm1f(float);
float fabsf(float);
-float fdimf(float, float);
float floorf(float);
-float fmaf(float, float, float);
-float fmaxf(float, float);
-float fminf(float, float);
float fmodf(float, float);
float frexpf(float value, int *);
float hypotf(float, float);
@@ -65,28 +73,20 @@ float ldexpf(float, int);
float lgammaf(float);
float log10f(float);
float log1pf(float);
-float log2f(float);
float logbf(float);
float logf(float);
-long lrintf(float);
-long lroundf(float);
float modff(float, float *);
float nearbyintf(float);
float nextafterf(float, float);
float powf(float, float);
float remainderf(float, float);
-float remquof(float, float, int *);
float rintf(float);
-float roundf(float);
-float scalblnf(float, long);
float scalbnf(float, int);
float sinf(float);
float sinhf(float);
float sqrtf(float);
float tanf(float);
float tanhf(float);
-float tgammaf(float);
-float truncf(float);
#endif
#ifdef L_acosf
@@ -201,12 +201,14 @@ float erff (float x)
#endif
+#if 0
#ifdef L_exp2f
float exp2f (float x)
{
return (float) exp2( (double)x );
}
#endif
+#endif
#ifdef L_expf
@@ -233,12 +235,14 @@ float fabsf (float x)
#endif
+#if 0
#ifdef L_fdimf
float fdimf (float x, float y)
{
return (float) fdim( (double)x, (double)y );
}
#endif
+#endif
#ifdef L_floorf
@@ -249,6 +253,7 @@ float floorf (float x)
#endif
+#if 0
#ifdef L_fmaf
float fmaf (float x, float y, float z)
{
@@ -271,6 +276,7 @@ float fminf (float x, float y)
return (float) fmin( (double)x, (double)y );
}
#endif
+#endif
#ifdef L_fmodf
@@ -336,7 +342,6 @@ long long llroundf (float x)
return (float) llround( (double)x );
}
#endif
-
#endif
#ifdef L_log10f
@@ -355,12 +360,14 @@ float log1pf (float x)
#endif
+#if 0
#ifdef L_log2f
float log2f (float x)
{
return (float) log2( (double)x );
}
#endif
+#endif
#ifdef L_logbf
@@ -379,6 +386,7 @@ float logf (float x)
#endif
+#if 0
#ifdef L_lrintf
long lrintf (float x)
{
@@ -393,6 +401,7 @@ long lroundf (float x)
return (float) lround( (double)x );
}
#endif
+#endif
#ifdef L_modff
@@ -407,12 +416,14 @@ float modff (float x, float *iptr)
#endif
+#if 0
#ifdef L_nearbyintf
float nearbyintf (float x)
{
return (float) nearbyint( (double)x );
}
#endif
+#endif
#ifdef L_nextafterf
@@ -430,7 +441,6 @@ float nexttowardf (float x, long double y)
return (float) nexttoward( (double)x, (double)y );
}
#endif
-
#endif
#ifdef L_powf
@@ -449,12 +459,14 @@ float remainderf (float x, float y)
#endif
+#if 0
#ifdef L_remquof
float remquof (float x, float y, int *quo)
{
return (float) remquo( (double)x, (double)y, quo );
}
#endif
+#endif
#ifdef L_rintf
@@ -465,6 +477,7 @@ float rintf (float x)
#endif
+#if 0
#ifdef L_roundf
float roundf (float x)
{
@@ -479,6 +492,7 @@ float scalblnf (float x, long exp)
return (float) scalbln( (double)x, exp );
}
#endif
+#endif
#ifdef L_scalbnf
@@ -529,6 +543,7 @@ float tanhf (float x)
#endif
+#if 0
#ifdef L_tgammaf
float tgammaf (float x)
{
@@ -543,5 +558,6 @@ float truncf (float x)
return (float) trunc( (double)x );
}
#endif
+#endif