Merge pull request #19 from robojumper/ipa

egg uses -ipa file
This commit is contained in:
Elijah Thomas
2024-05-04 12:39:21 -04:00
committed by GitHub
2 changed files with 7 additions and 13 deletions
+1
View File
@@ -194,6 +194,7 @@ cflags_egg = [
*cflags_base,
"-inline noauto",
"-fp_contract off",
"-ipa file",
]
# nw4r flags
+6 -13
View File
@@ -19,19 +19,6 @@ u8 clear_z_TX[64] ALIGN(32) = {
// clang-format on
} // namespace
// Hacks for float ordering
static f32 one() {
return 1.0f;
}
static f64 cast() {
return 4503599627370496.0;
}
static f32 zero() {
return 0.0f;
}
namespace EGG {
AsyncDisplay::AsyncDisplay(u8 maxRetrace) : Display(maxRetrace) {
@@ -46,6 +33,12 @@ AsyncDisplay::AsyncDisplay(u8 maxRetrace) : Display(maxRetrace) {
OSInitMessageQueue(&this->mMesgQueue, this->mMesgBuf, 4);
}
// Random function that pretends to do an int to float
// cast here, for float ordering issues
f64 cast() {
return 4503599627370496.0;
}
f32 AsyncDisplay::calcS() {
f32 tmp = this->field_0x9C + this->field_0xA0;
this->field_0x9C = tmp;