Decompile much of musyx

This commit is contained in:
gamemasterplc 2023-12-30 09:01:00 -06:00
parent 572a5e5a58
commit 36c41780cf
9 changed files with 100 additions and 22 deletions

View file

@ -3,6 +3,10 @@
#define M_PI 3.141592653589793
#ifndef _MATH_INLINE
#define _MATH_INLINE static inline
#endif
#ifdef MATH_EXPORT_CONST
extern inline float sqrtf(float x)
{
@ -36,6 +40,7 @@ extern inline float sqrtf(float x)
return x;
}
#endif
double atan(double x);
double copysign(double x, double y);
double cos(double x);
@ -58,4 +63,14 @@ float acosf(float x);
#define abs(x) __abs(x)
_MATH_INLINE float fabsf(float x) { return (float)fabs((double)x); }
_MATH_INLINE float sinf(float x) { return (float)sin((double)x); }
_MATH_INLINE float cosf(float x) { return (float)cos((double)x); }
_MATH_INLINE float atan2f(float y, float x) { return (float)atan2((double)y, (double)x); }
_MATH_INLINE float fmodf(float x, float m) { return (float)fmod((double)x, (double)m); }
_MATH_INLINE float floorf(float x) { return floor(x); }
_MATH_INLINE float powf(float __x, float __y) { return pow(__x, __y); }
#endif