gbdk-releases/sdcc/device/lib/_slong2fs.c

8 lines
150 B
C
Raw Permalink Normal View History

2015-01-10 16:25:09 +01:00
/* convert signed long to float */
float __slong2fs (signed long sl) {
if (sl<0)
return -__ulong2fs(-sl);
else
return __ulong2fs(sl);
}