summaryrefslogtreecommitdiff
path: root/include/JSystem/JMath
diff options
context:
space:
mode:
Diffstat (limited to 'include/JSystem/JMath')
-rw-r--r--include/JSystem/JMath/JMATrigonometric.h32
-rw-r--r--include/JSystem/JMath/JMath.h4
2 files changed, 32 insertions, 4 deletions
diff --git a/include/JSystem/JMath/JMATrigonometric.h b/include/JSystem/JMath/JMATrigonometric.h
index e47f6ef294..79d3798ed2 100644
--- a/include/JSystem/JMath/JMATrigonometric.h
+++ b/include/JSystem/JMath/JMATrigonometric.h
@@ -3,4 +3,36 @@
#include "dolphin/types.h"
+namespace std {
+template <typename A1, typename B1>
+struct pair {
+ A1 a1;
+ B1 b1;
+ pair() {
+ a1 = A1();
+ b1 = B1();
+ }
+};
+} // namespace std
+
+struct TSinCosTable {
+ std::pair<f32, f32> table[0x2000];
+};
+
+struct TAtanTable {
+ f32 table[1025];
+ u8 pad[0x1C];
+};
+
+struct TAsinAcosTable {
+ f32 table[1025];
+ u8 pad[0x1C];
+};
+
+namespace JMath {
+extern TSinCosTable sincosTable_;
+extern TAtanTable atanTable_;
+extern TAsinAcosTable asinAcosTable_;
+}; // namespace JMath
+
#endif /* JMATRIGONOMETRIC_H */
diff --git a/include/JSystem/JMath/JMath.h b/include/JSystem/JMath/JMath.h
index 228c129d1c..802d24f2aa 100644
--- a/include/JSystem/JMath/JMath.h
+++ b/include/JSystem/JMath/JMath.h
@@ -3,8 +3,4 @@
#include "dolphin/types.h"
-struct JMath {
- static u8 sincosTable_[65536];
-};
-
#endif /* JMATH_H */