From 3b05953b8c2fdd8b5207f4d99121d87c60a53672 Mon Sep 17 00:00:00 2001 From: Cuyler36 Date: Tue, 17 Jun 2025 10:51:00 -0400 Subject: [PATCH] emu64: improve score by fixing inlining --- src/static/libforest/emu64/emu64.c | 8 ++++++-- src/static/libforest/emu64/emu64_print.cpp | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/static/libforest/emu64/emu64.c b/src/static/libforest/emu64/emu64.c index 49319fde..1408b18e 100644 --- a/src/static/libforest/emu64/emu64.c +++ b/src/static/libforest/emu64/emu64.c @@ -11,10 +11,14 @@ #include "jsyswrap.h" #include "dolphin/PPCArch.h" -#pragma inline_depth(smart) -#pragma inline_max_size(1000) +// this pragma may be unnecessary +#pragma inline_depth(1024) + +// this one is absolutely necessary for a ton of function calls to be inlined +#pragma inline_max_size(10000) #include "../src/static/libforest/emu64/emu64_utility.c" +#include "../src/static/libforest/emu64/emu64_print.cpp" extern void OSInitFastCast(void); diff --git a/src/static/libforest/emu64/emu64_print.cpp b/src/static/libforest/emu64/emu64_print.cpp index 05969f7e..a434e7f9 100644 --- a/src/static/libforest/emu64/emu64_print.cpp +++ b/src/static/libforest/emu64/emu64_print.cpp @@ -1,4 +1,4 @@ -#include "emu64.hpp" +// #include "emu64.hpp" #include "boot.h"