* Makefile.in, configure.in, configure,
[fw/sdcc] / device / lib / asincosf.c
index b8005ecb54ef000da2f93e60d0e8cd57fb65a759..4e4c60a85285c5780e9d060eb7660fe1745b0d55 100644 (file)
 #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;