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
+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