summaryrefslogtreecommitdiff
path: root/src/PowerPC_EABI_Support
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2025-05-29 15:10:23 +0200
committerrobojumper <robojumper@gmail.com>2025-05-29 15:10:29 +0200
commit8894f73305da296dd7d67036eae97865b5f29876 (patch)
tree5f68ae9cf202fa8921ddacad5a35d0802531ddd2 /src/PowerPC_EABI_Support
parent79b20186423b791b8bacb4dfbfc4ea764bbd8051 (diff)
snd_AnimSound OK
Diffstat (limited to 'src/PowerPC_EABI_Support')
-rw-r--r--src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/cmath20
-rw-r--r--src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/cmath.h9
-rw-r--r--src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/math.h2
3 files changed, 16 insertions, 15 deletions
diff --git a/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/cmath b/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/cmath
index 57ceb903..d6685a2a 100644
--- a/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/cmath
+++ b/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/cmath
@@ -15,13 +15,13 @@ using ::atan;
using ::atan2;
using ::atan2f;
using ::ceil;
-using ::ceilf;
+// using ::ceilf;
using ::copysign;
using ::cos;
// using ::cosf;
-using ::fabsf;
+// using ::fabsf;
using ::floor;
-using ::floorf;
+// using ::floorf;
using ::fmod;
using ::fmodf;
using ::frexp;
@@ -35,18 +35,26 @@ using ::scalbn;
using ::sin;
using ::sinf;
using ::sqrt;
-using ::sqrtf;
+// using ::sqrtf;
using ::tan;
using ::tanf;
-inline float sqrt(float x) {
- return ::sqrtf(x);
+inline float ceilf(float x) {
+ return ::ceil(x);
+}
+
+inline float floorf(float x) {
+ return ::floor(x);
}
inline float cosf(float x) {
return cos(x);
}
+inline float sqrtf(float x) {
+ return ::sqrtf(x);
+}
+
// TODO: Very fake!
// inline double fabs_wrapper(double x) {
// return __fabs(x);
diff --git a/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/cmath.h b/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/cmath.h
index 38e4772b..4ab23c36 100644
--- a/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/cmath.h
+++ b/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/cmath.h
@@ -3,21 +3,14 @@
namespace std {
-/* float fabs(float num) {
- return ::fabsf(num);
-} */
inline float fabsf(float num) {
return ::fabsf(num);
}
-inline float sqrt(float x) {
- return ::sqrtf(x);
-}
-
inline float abs(float x) {
return ::fabsf(x);
}
} // namespace std
-#endif \ No newline at end of file
+#endif
diff --git a/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/math.h b/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/math.h
index 0d311c0e..58b6b4e7 100644
--- a/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/math.h
+++ b/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/math.h
@@ -29,7 +29,7 @@ double cos(double);
float cosf(float);
double exp(double);
double ceil(double);
-float ceilf(float);
+// float ceilf(float);
double frexp(double, int *);
double ldexp(double, int);
double modf(double, double *);