This is the mail archive of the
newlib@sourceware.cygnus.com
mailing list for the newlib project.
bug in sf_exp.c in mathfp of newlib
- To: newlib at sourceware dot cygnus dot com
- Subject: bug in sf_exp.c in mathfp of newlib
- From: Ran Cabell <rcabell at norfolk dot infi dot net>
- Date: Mon, 21 Feb 2000 14:30:56 -0500
sf_exp.c in mathfp has a typo - DOUBLE_IS_32BITS is written
DOUBLE_IS_32_BITS (one extra underscore) - the following patch fixes it.
diff -uNr -x *~ newlib-1.8.2.vanilla/newlib/libm/mathfp/sf_exp.c
newlib-1.8.2/newlib/libm/mathfp/sf_exp.c
--- newlib-1.8.2.vanilla/newlib/libm/mathfp/sf_exp.c Tue Nov 10 21:57:35
1998
+++ newlib-1.8.2/newlib/libm/mathfp/sf_exp.c Mon Feb 21 14:24:54 2000
@@ -82,11 +82,11 @@
return (ldexpf (R, N));
}
-#ifdef _DOUBLE_IS_32_BITS
+#ifdef _DOUBLE_IS_32BITS
double exp (double x)
{
return (double) expf ((float) x);
}
-#endif /* _DOUBLE_IS_32_BITS */
+#endif /* _DOUBLE_IS_32BITS */
Ran Cabell
rcabell@norfolk.infi.net