add FLT_MAX, FLT_EPSILON, NAN, and HUGE_VALF to MSL_C headers (#316)

This commit is contained in:
Jcw87
2023-04-21 02:01:46 -07:00
committed by GitHub
parent 0629e60eab
commit 6f30fa4d2a
20 changed files with 65 additions and 50 deletions
+4 -4
View File
@@ -4,7 +4,7 @@
//
#include "SSystem/SComponent/c_xyz.h"
#include "MSL_C/math.h"
#include "MSL_C/float.h"
#include "SSystem/SComponent/c_math.h"
#include "dol2asm.h"
#include "global.h"
@@ -144,9 +144,9 @@ bool cXyz::operator!=(const Vec& vec) const {
/* 802670AC-80267128 007C+00 s=0 e=4 z=7 None .text isZero__4cXyzCFv */
bool cXyz::isZero(void) const {
return fabsf(this->x) < 32.0f * __float_epsilon[0] &&
fabsf(this->y) < 32.0f * __float_epsilon[0] &&
fabsf(this->z) < 32.0f * __float_epsilon[0];
return fabsf(this->x) < 32.0f * FLT_EPSILON &&
fabsf(this->y) < 32.0f * FLT_EPSILON &&
fabsf(this->z) < 32.0f * FLT_EPSILON;
}
/* 80267128-80267150 0028+00 s=0 e=81 z=85 None .text atan2sX_Z__4cXyzCFv */