projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* device/include/pic16/stdio.h,
[fw/sdcc]
/
device
/
lib
/
_sint2fs.c
diff --git
a/device/lib/_sint2fs.c
b/device/lib/_sint2fs.c
index eacde5d5efa632cd3ac5cfcaadd566854e029b83..7458bb012e60f470f10942fd30ef9dd2b6238093 100644
(file)
--- a/
device/lib/_sint2fs.c
+++ b/
device/lib/_sint2fs.c
@@
-24,9
+24,9
@@
#ifdef FLOAT_ASM_MCS51
// float long __sint2fs (float x)
#ifdef FLOAT_ASM_MCS51
// float long __sint2fs (float x)
-static void dummy(void) _naked
+static void dummy(void) _
_
naked
{
{
- _asm
+ _
_
asm
.globl ___sint2fs
___sint2fs:
mov r4, dph
.globl ___sint2fs
___sint2fs:
mov r4, dph
@@
-35,16
+35,14
@@
___sint2fs:
mov r1, #0
mov a, #142
ljmp slong2fs_doit
mov r1, #0
mov a, #142
ljmp slong2fs_doit
- _endasm;
+ _
_
endasm;
}
#else
}
#else
-
/* convert signed int to float */
float __sint2fs (signed int si) {
return __slong2fs(si);
}
#endif
/* convert signed int to float */
float __sint2fs (signed int si) {
return __slong2fs(si);
}
#endif
-