[uClibc-cvs] svn commit: trunk/uClibc/libm

andersen at uclibc.org andersen at uclibc.org
Mon Mar 7 20:15:40 UTC 2005


Author: andersen
Date: 2005-03-07 13:15:39 -0700 (Mon, 07 Mar 2005)
New Revision: 9977

Log:
Disable float wrappers for functions that are not presently
implemented in libm


Modified:
   trunk/uClibc/libm/float_wrappers.c


Changeset:
Modified: trunk/uClibc/libm/float_wrappers.c
===================================================================
--- trunk/uClibc/libm/float_wrappers.c	2005-03-07 10:52:38 UTC (rev 9976)
+++ trunk/uClibc/libm/float_wrappers.c	2005-03-07 20:15:39 UTC (rev 9977)
@@ -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       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       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 @@
 #endif
 
 
+#if 0
 #ifdef L_exp2f
 float exp2f (float x)
 {
 	return (float) exp2( (double)x );
 }
 #endif
+#endif
 
 
 #ifdef L_expf
@@ -233,12 +235,14 @@
 #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 @@
 #endif
 
 
+#if 0
 #ifdef L_fmaf
 float fmaf (float x, float y, float z)
 {
@@ -271,6 +276,7 @@
 	return (float) fmin( (double)x, (double)y );
 }
 #endif
+#endif
 
 
 #ifdef L_fmodf
@@ -336,7 +342,6 @@
 	return (float) llround( (double)x );
 }
 #endif
-
 #endif
 
 #ifdef L_log10f
@@ -355,12 +360,14 @@
 #endif
 
 
+#if 0
 #ifdef L_log2f
 float log2f (float x)
 {
 	return (float) log2( (double)x );
 }
 #endif
+#endif
 
 
 #ifdef L_logbf
@@ -379,6 +386,7 @@
 #endif
 
 
+#if 0
 #ifdef L_lrintf
 long lrintf (float x)
 {
@@ -393,6 +401,7 @@
 	return (float) lround( (double)x );
 }
 #endif
+#endif
 
 
 #ifdef L_modff
@@ -407,12 +416,14 @@
 #endif
 
 
+#if 0
 #ifdef L_nearbyintf
 float nearbyintf (float x)
 {
 	return (float) nearbyint( (double)x );
 }
 #endif
+#endif
 
 
 #ifdef L_nextafterf
@@ -430,7 +441,6 @@
 	return (float) nexttoward( (double)x, (double)y );
 }
 #endif
-
 #endif
 
 #ifdef L_powf
@@ -449,12 +459,14 @@
 #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 @@
 #endif
 
 
+#if 0
 #ifdef L_roundf
 float roundf (float x)
 {
@@ -479,6 +492,7 @@
 	return (float) scalbln( (double)x, exp );
 }
 #endif
+#endif
 
 
 #ifdef L_scalbnf
@@ -529,6 +543,7 @@
 #endif
 
 
+#if 0
 #ifdef L_tgammaf
 float tgammaf (float x)
 {
@@ -543,5 +558,6 @@
 	return (float) trunc( (double)x );
 }
 #endif
+#endif
 
 




More information about the uClibc-cvs mailing list