#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
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
}
#endif
-