updates for multicore version runtime, temporarily disable math operations in multico...
[IRC.git] / Robust / src / Runtime / math.c
1 #include "runtime.h"
2 #ifdef MULTICORE
3 #ifdef RAW
4 #include "math.h"
5 #endif
6 #else
7 #include "math.h"
8 #endif
9 #include "structdefs.h"
10 #if 0
11 double CALL11(___Math______cos____D, double ___a___, double ___a___) {
12 #ifdef MULTICORE
13   return 1;
14 #ifdef RAW
15   return cos(___a___);
16 #endif
17 #else
18   return cos(___a___);
19 #endif
20 }
21
22 double CALL11(___Math______sin____D, double ___a___, double ___a___) {
23 #ifdef MULTICORE
24   return 1;
25 #ifdef RAW
26   return sin(___a___);
27 #endif
28 #else
29   return sin(___a___);
30 #endif
31 }
32
33 double CALL11(___Math______tan____D, double ___a___, double ___a___) {
34 #ifdef MULTICORE
35   return 1;
36 #ifdef RAW
37   return tan(___a___);
38 #endif
39 #else
40   return tan(___a___);
41 #endif
42 }
43
44 double CALL11(___Math______acos____D, double ___a___, double ___a___) {
45 #ifdef MULTICORE
46   return 1;
47 #ifdef RAW
48   return acos(___a___);
49 #endif
50 #else
51   return acos(___a___);
52 #endif
53 }
54
55 double CALL11(___Math______asin____D, double ___a___, double ___a___) {
56 #ifdef MULTICORE
57   return 1;
58 #ifdef RAW
59   return asin(___a___);
60 #endif
61 #else
62   return asin(___a___);
63 #endif
64 }
65
66 double CALL11(___Math______atan____D, double ___a___, double ___a___) {
67 #ifdef MULTICORE
68   return 1;
69 #ifdef RAW
70   return atan(___a___);
71 #endif
72 #else
73   return atan(___a___);
74 #endif
75 }
76
77 double CALL22(___Math______atan2____D_D, double ___a___, double ___b___, double ___a___, double ___b___) {
78 #ifdef MULTICORE
79   return 1;
80 #ifdef RAW
81   return atan2(___a___,___b___);
82 #endif
83 #else
84   return atan2(___a___,___b___);
85 #endif
86 }
87
88 double CALL11(___Math______log____D, double ___a___, double ___a___) {
89 #ifdef MULTICORE
90   return 1;
91 #ifdef RAW
92   return log(___a___);
93 #endif
94 #else
95   return log(___a___);
96 #endif
97 }
98
99 double CALL11(___Math______exp____D, double ___a___, double ___a___) {
100 #ifdef MULTICORE
101   return 1;
102 #ifdef RAW
103   return exp(___a___);
104 #endif
105 #else
106   return exp(___a___);
107 #endif
108 }
109
110 double CALL11(___Math______sqrt____D, double ___a___, double ___a___) {
111 #ifdef MULTICORE
112   return -1;
113 #ifdef RAW
114   return sqrt(___a___);
115 #endif
116 #else
117   return sqrt(___a___);
118 #endif
119 }
120
121 double CALL22(___Math______pow____D_D, double ___a___, double ___b___, double ___a___, double ___b___) {
122 #ifdef MULTICORE
123   return 1;
124 #ifdef RAW
125   return pow(___a___);
126 #endif
127 #else
128   return pow(___a___,___b___);
129 #endif
130 }
131
132 double CALL11(___Math______ceil____D, double ___a___, double ___a___) {
133 #ifdef MULTICORE
134   return 1;
135 #ifdef RAW
136   return ceil(___a___);
137 #endif
138 #else
139   return ceil(___a___);
140 #endif
141 }
142
143 double CALL11(___Math______floor____D, double ___a___, double ___a___) {
144 #ifdef MULTICORE
145   return 1;
146 #ifdef RAW
147   return floor(___a___);
148 #endif
149 #else
150   return floor(___a___);
151 #endif
152 }
153
154 float CALL11(___Math______cosf____F, float ___a___, float ___a___) {
155 #ifdef MULTICORE
156   return 1;
157 #ifdef RAW
158   return cosf(___a___);
159 #endif
160 #else
161   return cosf(___a___);
162 #endif
163 }
164
165 float CALL11(___Math______sinf____F, float ___a___, float ___a___) {
166 #ifdef MULTICORE
167   return 1;
168 #ifdef RAW
169   return sinf(___a___);
170 #endif
171 #else
172   return sinf(___a___);
173 #endif
174 }
175
176 float CALL11(___Math______expf____F, float ___a___, float ___a___) {
177 #ifdef MULTICORE
178   return 1;
179 #ifdef RAW
180   return expf(___a___);
181 #endif
182 #else
183   return expf(___a___);
184 #endif
185 }
186
187 float CALL11(___Math______sqrtf____F, float ___a___, float ___a___) {
188 #ifdef MULTICORE
189   return 1;
190 #ifdef RAW
191   return sqrtf(___a___);
192 #endif
193 #else
194   return sqrtf(___a___);
195 #endif
196 }
197
198 float CALL11(___Math______logf____F, float ___a___, float ___a___) {
199 #ifdef MULTICORE
200   return 1;
201 #ifdef RAW
202   return logf(___a___);
203 #endif
204 #else
205   return logf(___a___);
206 #endif
207 }
208
209 float CALL22(___Math______powf____F_F, float ___a___, float ___b___, float ___a___, float ___b___) {
210 #ifdef MULTICORE
211   return 1;
212 #ifdef RAW
213   return powf(___a___,___b___);
214 #endif
215 #else
216   return powf(___a___,___b___);
217 #endif
218 }
219 #endif