* fixed GCC 4.4.0 mingw compilation:
[fw/sdcc] / device / lib / logf.c
index 31907a07c90c297383db211952b06e795d92d055..d499f8c124271a52cb1eb4ca41b00cd985a6275d 100644 (file)
 #include <float.h>
 
 // TODO: share with other temps
-static data unsigned char logf_tmp[4];
+static __data unsigned char logf_tmp[4];
 
 float logf(float x)
 {
        x;
-       _asm
+       __asm
 
        // extract the two input, placing it into:
        //      sign     exponent   mantiassa
@@ -183,16 +183,12 @@ logf_exp_scale:
        lcall   fs_normalize_a
        // now just add log(fractional) +/- log(2) * abs(exp - 126)
        ljmp    fsadd_direct_entry
-       _endasm;
+       __endasm;
 #pragma less_pedantic
 }
 
-
 #else // not MATH_ASM_MCS51
 
-
-
-
 /*Constants for 24 bits or less (8 decimal digits)*/
 #define A0 -0.5527074855E+0
 #define B0 -0.6632718214E+1
@@ -239,4 +235,3 @@ float logf(const float x) _FLOAT_FUNC_REENTRANT
 }
 
 #endif
-