projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed and cleaned up fp support, optimisation yet to come
[fw/sdcc]
/
device
/
lib
/
_slong2fs.c
diff --git
a/device/lib/_slong2fs.c
b/device/lib/_slong2fs.c
index 11516e4f04ed5d22aedc9c72be7996d142587f5b..394fba874f8dbbb3fdad4856acc1bfc55db91372 100644
(file)
--- a/
device/lib/_slong2fs.c
+++ b/
device/lib/_slong2fs.c
@@
-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