fixed and cleaned up fp support, optimisation yet to come
[fw/sdcc] / device / lib / _slong2fs.c
index 11516e4f04ed5d22aedc9c72be7996d142587f5b..394fba874f8dbbb3fdad4856acc1bfc55db91372 100644 (file)
@@ -1,9 +1,7 @@
-float 
-__ulong2fs (unsigned long a );
+#include <float.h>
 
 /* convert signed long to float */
-float __slong2fs (signed long sl) 
-{
+float __slong2fs (signed long sl) {
   if (sl<0) 
     return -__ulong2fs(-sl);
   else