more changes...think it is done...just need to wire it in to the build...
[IRC.git] / Robust / src / Runtime / math.c
index 3140f1c0a062eb375c84630f171747e2ba238da8..d930413dc1d2e15e352d1a80e340c7cdaef58c98 100644 (file)
 #include "runtime.h"
 #include "math.h"
 #include "structdefs.h"
+#include "methodheaders.h"
 
+#ifdef D___Math______cos____D
 double CALL11(___Math______cos____D, double ___a___, double ___a___) {
   return cos(___a___);
 }
+#endif
 
+#ifdef D___Math______sin____D
 double CALL11(___Math______sin____D, double ___a___, double ___a___) {
   return sin(___a___);
 }
+#endif
 
+#ifdef D___Math______tan____D
 double CALL11(___Math______tan____D, double ___a___, double ___a___) {
   return tan(___a___);
 }
+#endif
 
+#ifdef D___Math______acos____D
 double CALL11(___Math______acos____D, double ___a___, double ___a___) {
   return acos(___a___);
 }
+#endif
 
+#ifdef D___Math______asin____D
 double CALL11(___Math______asin____D, double ___a___, double ___a___) {
   return asin(___a___);
 }
+#endif
 
+#ifdef D___Math______atan____D
 double CALL11(___Math______atan____D, double ___a___, double ___a___) {
   return atan(___a___);
 }
+#endif
 
+#ifdef D___Math______atan2____D_D
+double CALL22(___Math______atan2____D_D, double ___a___, double ___b___, double ___a___, double ___b___) {
+  return atan2(___a___,___b___);
+}
+#endif
+
+#ifdef D___Math______log____D
 double CALL11(___Math______log____D, double ___a___, double ___a___) {
   return log(___a___);
 }
+#endif
 
+#ifdef D___Math______exp____D
 double CALL11(___Math______exp____D, double ___a___, double ___a___) {
   return exp(___a___);
 }
+#endif
 
+#ifdef D___Math______sqrt____D
 double CALL11(___Math______sqrt____D, double ___a___, double ___a___) {
   return sqrt(___a___);
 }
+#endif
 
+#ifdef D___Math______pow____D_D
 double CALL22(___Math______pow____D_D, double ___a___, double ___b___, double ___a___, double ___b___) {
   return pow(___a___,___b___);
 }
+#endif
+
+#ifdef D___Math______ceil____D
+double CALL11(___Math______ceil____D, double ___a___, double ___a___) {
+  return ceil(___a___);
+}
+#endif
 
+#ifdef D___Math______floor____D
+double CALL11(___Math______floor____D, double ___a___, double ___a___) {
+  return floor(___a___);
+}
+#endif
+
+#ifdef D___Math______cosf____F
 float CALL11(___Math______cosf____F, float ___a___, float ___a___) {
   return cosf(___a___);
 }
+#endif
 
+#ifdef D___Math______sinf____F
 float CALL11(___Math______sinf____F, float ___a___, float ___a___) {
   return sinf(___a___);
 }
+#endif
+
+#ifdef D___Math______expf____F
+float CALL11(___Math______expf____F, float ___a___, float ___a___) {
+  return expf(___a___);
+}
+#endif
 
+#ifdef D___Math______sqrtf____F
 float CALL11(___Math______sqrtf____F, float ___a___, float ___a___) {
   return sqrtf(___a___);
 }
+#endif
+
+#ifdef D___Math______logf____F
+float CALL11(___Math______logf____F, float ___a___, float ___a___) {
+  return logf(___a___);
+}
+#endif
 
+#ifdef D___Math______powf____F_F
 float CALL22(___Math______powf____F_F, float ___a___, float ___b___, float ___a___, float ___b___) {
   return powf(___a___,___b___);
 }
+#endif
+
+#ifdef D___Math______ceilf____F
+float CALL11(___Math______ceilf____F, float ___a___, float ___a___) {
+  return ceilf(___a___);
+}
+#endif
+
+#ifdef D___Math______IEEEremainder____F_F
+float CALL22(___Math______IEEEremainder____F_F, float ___a___, float ___b___,  float ___a___, float ___b___) {
+  return fmod(___a___, ___b___);
+}
+#endif