Fix d_a_ykgr retail regalloc and mostly match on debug (#2608)

* d_a_ykgr OK

* Fix sqrtf for shield

* Fix pch caps
This commit is contained in:
LagoLunatic
2025-08-27 04:40:48 -04:00
committed by GitHub
parent a945ef4fb8
commit 0579f4acef
8 changed files with 123 additions and 81 deletions
@@ -1,6 +1,7 @@
#ifndef MSL_MATH_H_
#define MSL_MATH_H_
#include "global.h"
#include "float.h"
#define NAN (*(float*) __float_nan)
@@ -68,6 +69,11 @@ double sqrt(double);
double tan(double);
float tanf(float);
#if PLATFORM_SHIELD
inline float sqrtf(float mag) {
return sqrt(mag);
}
#else
inline float sqrtf(float mag) {
static const double _half = 0.5;
static const double _three = 3.0;
@@ -85,6 +91,7 @@ inline float sqrtf(float mag) {
return mag;
}
}
#endif
inline float atan2f(float y, float x) {
return (float)atan2(y, x);