mirror of
https://github.com/zeldaret/tp
synced 2026-09-02 18:02:55 -04:00
some J3D/misc cleanup (#2628)
* some j3d cleanup * begin using uintptr_t * j3dgraphbase cleanup * j3dgraphanimator cleanup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user