svn commit: trunk/uClibc/libm
vapier at uclibc.org
vapier at uclibc.org
Thu Nov 3 23:57:07 UTC 2005
Author: vapier
Date: 2005-11-03 15:57:05 -0800 (Thu, 03 Nov 2005)
New Revision: 12141
Log:
cleanup how we enable/disable certain wrappers since some were suffering from bit rot ... also enable the round float wrappers
Modified:
trunk/uClibc/libm/float_wrappers.c
Changeset:
Modified: trunk/uClibc/libm/float_wrappers.c
===================================================================
--- trunk/uClibc/libm/float_wrappers.c 2005-11-03 23:33:53 UTC (rev 12140)
+++ trunk/uClibc/libm/float_wrappers.c 2005-11-03 23:57:05 UTC (rev 12141)
@@ -26,24 +26,20 @@
/* 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
+#undef L_exp2f /*float exp2f(float);*/
+#undef L_fdimf /*float fdimf(float, float);*/
+#undef L_fmaf /*float fmaf(float, float, float);*/
+#undef L_fmaxf /*float fmaxf(float, float);*/
+#undef L_fminf /*float fminf(float, float);*/
+#undef L_llrintf /*long long llrintf(float);*/
+#undef L_log2f /*float log2f(float);*/
+#undef L_lrintf /*long lrintf(float);*/
+#undef L_nearbyintf /*float nearbyintf(float);*/
+#undef L_nexttowardf /*float nexttowardf(float, long double);*/
+#undef L_remquof /*float remquof(float, float, int *);*/
+#undef L_scalblnf /*float scalblnf(float, long);*/
+#undef L_tgammaf /*float tgammaf(float);*/
+#undef L_truncf /*float truncf(float);*/
/* Implement the following, as defined by SuSv3 */
#if 0
@@ -71,16 +67,18 @@
int ilogbf(float);
float ldexpf(float, int);
float lgammaf(float);
+long long llroundf(float);
float log10f(float);
float log1pf(float);
float logbf(float);
float logf(float);
+long lroundf(float);
float modff(float, float *);
-float nearbyintf(float);
float nextafterf(float, float);
float powf(float, float);
float remainderf(float, float);
float rintf(float);
+float roundf(float);
float scalbnf(float, int);
float sinf(float);
float sinhf(float);
@@ -89,6 +87,7 @@
float tanhf(float);
#endif
+
#ifdef L_acosf
float acosf (float x)
{
@@ -201,14 +200,12 @@
#endif
-#if 0
#ifdef L_exp2f
float exp2f (float x)
{
return (float) exp2( (double)x );
}
#endif
-#endif
#ifdef L_expf
@@ -235,14 +232,12 @@
#endif
-#if 0
#ifdef L_fdimf
float fdimf (float x, float y)
{
return (float) fdim( (double)x, (double)y );
}
#endif
-#endif
#ifdef L_floorf
@@ -253,7 +248,6 @@
#endif
-#if 0
#ifdef L_fmaf
float fmaf (float x, float y, float z)
{
@@ -276,7 +270,6 @@
return (float) fmin( (double)x, (double)y );
}
#endif
-#endif
#ifdef L_fmodf
@@ -327,7 +320,6 @@
#endif
-#if 0
#ifdef L_llrintf
long long llrintf (float x)
{
@@ -342,8 +334,8 @@
return (float) llround( (double)x );
}
#endif
-#endif
+
#ifdef L_log10f
float log10f (float x)
{
@@ -360,14 +352,12 @@
#endif
-#if 0
#ifdef L_log2f
float log2f (float x)
{
return (float) log2( (double)x );
}
#endif
-#endif
#ifdef L_logbf
@@ -386,7 +376,6 @@
#endif
-#if 0
#ifdef L_lrintf
long lrintf (float x)
{
@@ -401,7 +390,6 @@
return (float) lround( (double)x );
}
#endif
-#endif
#ifdef L_modff
@@ -416,14 +404,12 @@
#endif
-#if 0
#ifdef L_nearbyintf
float nearbyintf (float x)
{
return (float) nearbyint( (double)x );
}
#endif
-#endif
#ifdef L_nextafterf
@@ -434,15 +420,14 @@
#endif
-#if 0
#ifdef L_nexttowardf
float nexttowardf (float x, long double y)
{
return (float) nexttoward( (double)x, (double)y );
}
#endif
-#endif
+
#ifdef L_powf
float powf (float x, float y)
{
@@ -459,14 +444,12 @@
#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
@@ -477,7 +460,6 @@
#endif
-#if 0
#ifdef L_roundf
float roundf (float x)
{
@@ -492,7 +474,6 @@
return (float) scalbln( (double)x, exp );
}
#endif
-#endif
#ifdef L_scalbnf
@@ -543,7 +524,6 @@
#endif
-#if 0
#ifdef L_tgammaf
float tgammaf (float x)
{
@@ -558,6 +538,3 @@
return (float) trunc( (double)x );
}
#endif
-#endif
-
-
More information about the uClibc-cvs
mailing list