Remove atan2f() function definition.

`atan2f()` is not used anywhere and collides with `math.h`'s definition of the function, better to remove it entirely. It was causing problems in WebAssembly builds, taking precedence when linking with other codebases that tried to use `atan2f()` from `math.h`.
This commit is contained in:
Renato Rotenberg
2025-01-29 23:49:26 -03:00
parent d5d9914478
commit ce196c823d
2 changed files with 6 additions and 4 deletions
+4 -3
View File
@@ -2185,9 +2185,10 @@ s16 atan2s(f32 y, f32 x) {
/**
* Compute the atan2 in radians by calling atan2s and converting the result.
*/
f32 atan2f(f32 y, f32 x) {
return (f32) atan2s(y, x) * M_PI / 0x8000;
}
// libsm64: `atan2f()` is not used anywhere and collides with `math.h`'s definition of the function, better to remove it entirely.
// f32 atan2f(f32 y, f32 x) {
// return (f32) atan2s(y, x) * M_PI / 0x8000;
// }
#define CURVE_BEGIN_1 1
#define CURVE_BEGIN_2 2