mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 06:54:28 -04:00
Fix more nonmatchings (#2850)
* Fix GetPolyIndex and GetBgIndex, fixing a couple regallocs * Match daNpcCd2_c::checkFearSituation and daNpcCd2_c::getAnmP * Match daAlink_c::jointControll * Clean up float class checks * Move float constants to global.h
This commit is contained in:
@@ -240,9 +240,9 @@ void JUTException::setFPException(u32 fpscr_enable_bits) {
|
||||
|
||||
/* 802E22C4-802E2454 2DCC04 0190+00 1/1 0/0 0/0 .text showFloatSub__12JUTExceptionFif */
|
||||
void JUTException::showFloatSub(int index, f32 value) {
|
||||
if (fpclassify(value) == FP_NAN) {
|
||||
if (isnan(value)) {
|
||||
sConsole->print_f("F%02d: Nan ", index);
|
||||
} else if (fpclassify(value) == FP_INFINITE) {
|
||||
} else if (isinf(value)) {
|
||||
if (__signbit(value)) {
|
||||
sConsole->print_f("F%02d:+Inf ", index);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user