some J3D/misc cleanup (#2628)

* some j3d cleanup

* begin using uintptr_t

* j3dgraphbase cleanup

* j3dgraphanimator cleanup
This commit is contained in:
TakaRikka
2025-09-04 07:56:59 -07:00
committed by GitHub
parent ee8b843996
commit b45a089e15
290 changed files with 4221 additions and 3605 deletions
@@ -0,0 +1,22 @@
#ifndef MSL_STDINT_H_
#define MSL_STDINT_H_
#include <cstdint.h>
#ifdef __cplusplus
using std::uint8_t;
using std::uint16_t;
using std::uint32_t;
using std::int8_t;
using std::int16_t;
using std::int32_t;
using std::uint64_t;
using std::int64_t;
using std::uintptr_t;
using std::intptr_t;
#endif
#endif
@@ -1,4 +1,5 @@
#include "__va_arg.h"
#include <stdint.h>
#undef __va_arg
@@ -38,7 +39,7 @@ void* __va_arg(_va_list_struct* list, int type) {
} else {
*reg = 8;
addr = list->input_arg_area;
addr = (char*)(((u32)(addr) + ((size)-1)) & ~((size)-1));
addr = (char*)(((uintptr_t)(addr) + ((size)-1)) & ~((size)-1));
list->input_arg_area = addr + size;
}
@@ -47,4 +48,4 @@ void* __va_arg(_va_list_struct* list, int type) {
}
return addr;
}
}