projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* device/include/pic/pic12f629.h,
[fw/sdcc]
/
device
/
lib
/
asincosf.c
diff --git
a/device/lib/asincosf.c
b/device/lib/asincosf.c
index b8005ecb54ef000da2f93e60d0e8cd57fb65a759..4e4c60a85285c5780e9d060eb7660fe1745b0d55 100644
(file)
--- a/
device/lib/asincosf.c
+++ b/
device/lib/asincosf.c
@@
-33,12
+33,19
@@
#define P(g) (P2*g+P1)
#define Q(g) ((Q2*g+Q1)*g+Q0)
#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 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;
y=fabsf(x);
i=isacos;