MSL_C header cleanup (#2988)

* msl_c header cleanup

* math header cleanup

* fix rest of shieldD configs

* cleanup cflag configs a bit

* fix shield build
This commit is contained in:
TakaRikka
2025-12-23 10:20:32 -08:00
committed by GitHub
parent ce895330ed
commit c9d0c58ffe
281 changed files with 987 additions and 792 deletions
+25 -25
View File
@@ -4787,105 +4787,105 @@ PowerPC_EABI_Support/MSL/MSL_C/MSL_Common_Embedded/Math/Double_precision/w_sqrt.
PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Src/extras.c:
.text start:0x80629B50 end:0x80629BF4
TRK_Hollywood_Revolution/metrotrk/targsupp.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Processor/ppc/Export/targsupp.s:
.text start:0x80629BF4 end:0x80629C14
TRK_Hollywood_Revolution/metrotrk/custconn/cc_gdev.c:
TRK_MINNOW_DOLPHIN/gamedev/cust_connection/utils/gc/cc_gdev.c:
.text start:0x80629C14 end:0x80629E8C
.sbss start:0x8074D6D8 end:0x8074D6E0
.bss start:0x8080E8A8 end:0x8080EDC8
TRK_Hollywood_Revolution/metrotrk/custconn/MWCriticalSection_gc.c:
TRK_MINNOW_DOLPHIN/gamedev/cust_connection/utils/gc/MWCriticalSection_gc.c:
.text start:0x80629E8C end:0x80629EC8
TRK_Hollywood_Revolution/metrotrk/custconn/CircleBuffer.c:
TRK_MINNOW_DOLPHIN/gamedev/cust_connection/utils/common/CircleBuffer.c:
.text start:0x80629EC8 end:0x8062A104
TRK_Hollywood_Revolution/metrotrk/flush_cache.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Processor/ppc/Generic/flush_cache.c:
.text start:0x8062A104 end:0x8062A13C
TRK_Hollywood_Revolution/metrotrk/main_TRK.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Portable/main_TRK.c:
.text start:0x8062A13C end:0x8062A178
.sbss start:0x8074D6E0 end:0x8074D6E8
TRK_Hollywood_Revolution/metrotrk/mainloop.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Portable/mainloop.c:
.text start:0x8062A178 end:0x8062A264
TRK_Hollywood_Revolution/metrotrk/mem_TRK.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Portable/mem_TRK.c:
.text start:0x8062A264 end:0x8062A4C8
TRK_Hollywood_Revolution/metrotrk/dispatch.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Portable/dispatch.c:
.text start:0x8062A4C8 end:0x8062A5E8
.data start:0x8073EE40 end:0x8073EEB0
TRK_Hollywood_Revolution/metrotrk/dolphin_trk.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Os/dolphin/dolphin_trk.c:
.text start:0x8062A5E8 end:0x8062A90C
.data start:0x8073EEB0 end:0x8073EEF0
.sbss start:0x8074D6E8 end:0x8074D6F4
TRK_Hollywood_Revolution/metrotrk/dolphin_trk_glue.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Os/dolphin/dolphin_trk_glue.c:
.text start:0x8062A90C end:0x8062ACA8
.data start:0x8073EEF0 end:0x8073EFD8
.sbss start:0x8074D6F4 end:0x8074D6F8
.sdata2 start:0x80753480 end:0x80753484
.bss start:0x8080EDC8 end:0x8080EDF0
TRK_Hollywood_Revolution/metrotrk/notify.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Portable/notify.c:
.text start:0x8062ACA8 end:0x8062AD38
TRK_Hollywood_Revolution/metrotrk/nubevent.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Portable/nubevent.c:
.text start:0x8062AD38 end:0x8062AED4
.data start:0x8073EFD8 end:0x8073EFF8
.bss start:0x8080EDF0 end:0x8080EE18
TRK_Hollywood_Revolution/metrotrk/nubinit.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Portable/nubinit.c:
.text start:0x8062AED4 end:0x8062B024
.data start:0x8073EFF8 end:0x8073F018
.sbss start:0x8074D6F8 end:0x8074D700
TRK_Hollywood_Revolution/metrotrk/serpoll.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Portable/serpoll.c:
.text start:0x8062B024 end:0x8062B16C
.sbss start:0x8074D700 end:0x8074D708
TRK_Hollywood_Revolution/metrotrk/string_TRK.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Portable/string_TRK.c:
.text start:0x8062B16C end:0x8062B188
TRK_Hollywood_Revolution/metrotrk/support.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Portable/support.c:
.text start:0x8062B188 end:0x8062B7AC
.data start:0x8073F018 end:0x8073F060
TRK_Hollywood_Revolution/metrotrk/targcont.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Os/dolphin/targcont.c:
.text start:0x8062B7AC end:0x8062B7E0
TRK_Hollywood_Revolution/metrotrk/mpc_7xx_603e.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Processor/ppc/Generic/mpc_7xx_603e.c:
.text start:0x8062B7E0 end:0x8062BB08
TRK_Hollywood_Revolution/metrotrk/msg.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Portable/msg.c:
.text start:0x8062BB08 end:0x8062BB6C
.data start:0x8073F060 end:0x8073F088
.sbss start:0x8074D708 end:0x8074D710
TRK_Hollywood_Revolution/metrotrk/msgbuf.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Portable/msgbuf.c:
.text start:0x8062BB6C end:0x8062C378
.data start:0x8073F088 end:0x8073F0B0
.bss start:0x8080EE18 end:0x808107C0
TRK_Hollywood_Revolution/metrotrk/msghndlr.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Portable/msghndlr.c:
.text start:0x8062C378 end:0x8062D2FC
.data start:0x8073F0B0 end:0x8073F118
.sbss start:0x8074D710 end:0x8074D718
TRK_Hollywood_Revolution/metrotrk/mslsupp.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Export/mslsupp.c:
.text start:0x8062D2FC end:0x8062D488
TRK_Hollywood_Revolution/metrotrk/targimpl.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Processor/ppc/Generic/targimpl.c:
.text start:0x8062D488 end:0x8062ECAC
.rodata start:0x8065FF00 end:0x8065FF88
.data start:0x8073F118 end:0x8073F128
.sbss start:0x8074D718 end:0x8074D728
.bss start:0x808107C0 end:0x80810D68
TRK_Hollywood_Revolution/metrotrk/target_options.c:
TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Os/dolphin/target_options.c:
.text start:0x8062ECAC end:0x8062ECBC
NdevExi2AD/DebuggerDriver.c:
+203 -80
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -2,7 +2,7 @@
#define J2DPRINT_H
#include "JSystem/J2DGraph/J2DTextBox.h"
#include "__va_arg.h"
#include <stdarg.h>
class JUTFont;
class J2DPrint;
+1 -1
View File
@@ -2,7 +2,7 @@
#define JGEOMETRY_H
#include "dolphin/mtx.h"
#include "math.h"
#include <math.h>
#include "JSystem/JMath/JMath.h"
namespace JGeometry {
+1 -1
View File
@@ -2,7 +2,7 @@
#define JMATH_H
#include "dolphin/mtx.h"
#include "math.h"
#include <math.h>
void JMAMTXApplyScale(const Mtx, Mtx, f32, f32, f32);
void JMAEulerToQuat(s16 param_0, s16 param_1, s16 param_2, Quaternion* param_3);
@@ -2,7 +2,7 @@
#define JSTUDIO_MATH_H
#include "dolphin/mtx.h"
#include "math.h"
#include <math.h>
namespace JStudio {
namespace math {
@@ -3,8 +3,8 @@
#include "JSystem/JStudio/JStudio/jstudio-control.h"
#include "global.h"
#include "limits.h"
#include "math.h"
#include <limits.h>
#include <math.h>
typedef struct _GXColor GXColor;
+1 -1
View File
@@ -163,7 +163,7 @@ private:
/* 0x04 */ u32 _4;
/* 0x08 */ u32 _8;
/* 0x0C */ TFactory* pFactory;
/* 0x10 */ JGadget::TLinkList<TObject, -12> mObjectContainer;
/* 0x10 */ JGadget::TLinkList<TObject, -12> ocObject_;
/* 0x1C */ u32 mStatus;
/* 0x20 */ TObject_control mObject_control;
/* 0x54 */ s32 _54;
+1 -1
View File
@@ -4,7 +4,7 @@
#include "JSystem/JGadget/linklist.h"
#include "JSystem/JKernel/JKRDisposer.h"
#include "JSystem/JUtility/JUTFont.h"
#include "__va_arg.h"
#include <stdarg.h>
/**
* @ingroup jsystem-jutility
+1 -1
View File
@@ -2,7 +2,7 @@
#define JUTDIRECTPRINT_H
#include "JSystem/JUtility/TColor.h"
#include "__va_arg.h"
#include <stdarg.h>
/**
* @ingroup jsystem-jutility
+1 -1
View File
@@ -3,7 +3,7 @@
#include "JSystem/JKernel/JKRThread.h"
#include "JSystem/JUtility/JUTGamePad.h"
#include "__va_arg.h"
#include <stdarg.h>
#include <dolphin/gx.h>
#include <dolphin/os.h>
#include "global.h"
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef C_M3D_H_
#define C_M3D_H_
#include "math.h"
#include <math.h>
#include "dolphin/mtx.h"
class cM3dGAab;
+1 -1
View File
@@ -2,7 +2,7 @@
#define C_XYZ_H
#include "dolphin/mtx.h"
#include "math.h"
#include <math.h>
struct cXyz : Vec {
static const cXyz Zero;
+1 -1
View File
@@ -11,7 +11,7 @@
#include "d/d_resorce.h"
#include "d/d_s_play.h"
#include <cmath.h>
#include <math.h>
/**
* @ingroup actors-objects
+1 -1
View File
@@ -2,7 +2,7 @@
#define D_MENU_D_MENU_DMAP_MAP_H
#include "d/d_menu_dmap.h"
#include <cmath.h>
#include <math.h>
class dMenu_DmapMap_c {
public:
+3 -3
View File
@@ -5,13 +5,13 @@
#include "weak_bss_1109_to_1009.h" // IWYU pragma: export
// Fixes weak .data
#include "math.h" // IWYU pragma: export
#include "cmath.h" // IWYU pragma: export
#include "JSystem/J3DGraphBase/J3DMatBlock.h" // IWYU pragma: export
#include "Z2AudioLib/Z2Calc.h" // IWYU pragma: export
// Fixes weak function ordering
#include "cmath.h" // IWYU pragma: export
#include "string.h" // IWYU pragma: export
#include "math.h" // IWYU pragma: export
#include "cstring.h" // IWYU pragma: export
#include "JSystem/JUtility/JUTGamePad.h" // IWYU pragma: export
#include "JSystem/J3DGraphAnimator/J3DMaterialAnm.h" // IWYU pragma: export
#include "JSystem/JHostIO/JORReflexible.h" // IWYU pragma: export
+7
View File
@@ -1,6 +1,9 @@
#ifndef _DOLPHIN_AR_H_
#define _DOLPHIN_AR_H_
#ifdef __REVOLUTION_SDK__
#include <revolution/aralt.h>
#else
#include <dolphin/types.h>
#ifdef __cplusplus
@@ -64,8 +67,12 @@ void ARQSetChunkSize(u32 size);
u32 ARQGetChunkSize(void);
BOOL ARQCheckInit(void);
u16 __ARGetInterruptStatus(void);
void __ARClearInterrupt(void);
#ifdef __cplusplus
}
#endif
#endif
#endif
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef _DOLPHIN_OS_H_
#define _DOLPHIN_OS_H_
#include <stdio.h>
#include <cstdio.h>
#ifdef __REVOLUTION_SDK__
#include <revolution/os.h>
@@ -1,4 +1,4 @@
#pragma cplusplus on
// fake MSL_C math for sdk specifically since it differs from game MSL_C math
extern inline float sqrtf(float x) {
static const double _half=.5;
@@ -46,6 +46,10 @@ extern inline float fabsf(float x) {
}
extern float cosf(float);
extern float sinf(float);
extern float tanf(float);
extern float acosf(float);
extern inline float cos(float x) {
return cosf(x);
}
@@ -62,5 +66,3 @@ inline float floor(float x) {
// x < 0 -> int conversion of x above rounded toward zero(so decrement)
return (float)i;
}
#pragma cplusplus reset
+1 -1
View File
@@ -82,7 +82,7 @@ typedef unsigned int uint;
#define __REGISTER
#endif
#include <stddef.h>
#include <cstddef.h>
#endif
#endif

Some files were not shown because too many files have changed in this diff Show More