#define P(g) (P2*g+P1)
#define Q(g) ((Q2*g+Q1)*g+Q0)
+#ifdef SDCC_mcs51
+ #define myconst code
+#else
+ #define myconst const
+#endif
+
float asincosf(const float x, const int isacos)
{
float y, g, r;
int i;
- float a[2]={ 0.0, QUART_PI };
- float b[2]={ HALF_PI, QUART_PI };
+
+ static myconst float a[2]={ 0.0, QUART_PI };
+ static myconst float b[2]={ HALF_PI, QUART_PI };
y=fabsf(x);
i=isacos;
#define K2 0.7320508076 /* sqrt(3)-1 */
#define K3 1.7320508076 /* sqrt(3) */
+#ifdef SDCC_mcs51
+ #define myconst code
+#else
+ #define myconst const
+#endif
+
float atanf(const float x) reentrant
{
float f, r, g;
int n=0;
- static float a[]={ 0.0, 0.5235987756, 1.5707963268, 1.0471975512 };
+ static myconst float a[]={ 0.0, 0.5235987756, 1.5707963268, 1.0471975512 };
f=fabsf(x);
if(f>1.0)
{
int n;
float xn, g, r, z, y;
- int sign;
+#ifdef SDCC_mcs51
+ bit sign;
+#else
+ char sign;
+#endif
if(x>=0.0)
{ y=x; sign=0; }
float sincosf(const float x, const int iscos)
{
float y, f, r, g, XN;
- int N, sign;
+ int N;
+#ifdef SDCC_mcs51
+ bit sign;
+#else
+ char sign;
+#endif
if(iscos)
{
float sincoshf(const float x, const int iscosh)
{
float y, w, z;
- int sign;
+#ifdef SDCC_mcs51
+ bit sign;
+#else
+ char sign;
+#endif
if (x<0.0) { y=-x; sign=1; }
else { y=x; sign=0; }