X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2F_sint2fs.c;h=7458bb012e60f470f10942fd30ef9dd2b6238093;hb=503506adabdfdde204ab0fc7daeed9f9105ca460;hp=eacde5d5efa632cd3ac5cfcaadd566854e029b83;hpb=4e85b590d59de032a494ad439773f94d845db0f4;p=fw%2Fsdcc diff --git a/device/lib/_sint2fs.c b/device/lib/_sint2fs.c index eacde5d5..7458bb01 100644 --- a/device/lib/_sint2fs.c +++ b/device/lib/_sint2fs.c @@ -24,9 +24,9 @@ #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 @@ -35,16 +35,14 @@ ___sint2fs: mov r1, #0 mov a, #142 ljmp slong2fs_doit - _endasm; + __endasm; } #else - /* convert signed int to float */ float __sint2fs (signed int si) { return __slong2fs(si); } #endif -