mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-12 01:40:47 +00:00
[ntsc-1.2] Match N64 libultra (#2081)
* Match N64 libultra * INITIALIZE_FUNC -> OSINITIALIZE_FUNC * Document osGetIntMask * Refer readers of osGetIntMask to osSetIntMask comment * Whitelist new static functions in disasm unksyms check
This commit is contained in:
parent
6e8b820184
commit
7079005c83
31 changed files with 344 additions and 42 deletions
|
@ -4,8 +4,8 @@
|
|||
|
||||
#define BUFF_LEN 0x20
|
||||
|
||||
short _Ldunscale(short*, _Pft*);
|
||||
void _Genld(_Pft*, char, char*, short, short);
|
||||
static short _Ldunscale(short*, _Pft*);
|
||||
static void _Genld(_Pft*, char, char*, short, short);
|
||||
|
||||
static const double pows[] = { 10e0L, 10e1L, 10e3L, 10e7L, 10e15L, 10e31L, 10e63L, 10e127L, 10e255L };
|
||||
|
||||
|
@ -156,7 +156,7 @@ void _Ldtob(_Pft* args, char code) {
|
|||
_Genld((_Pft*)args, code, ptr, nsig, exp);
|
||||
}
|
||||
|
||||
short _Ldunscale(short* pex, _Pft* px) {
|
||||
static short _Ldunscale(short* pex, _Pft* px) {
|
||||
unsigned short* ps = (unsigned short*)px;
|
||||
short xchar = (ps[_D0] & _DMASK) >> _DOFF;
|
||||
|
||||
|
@ -176,7 +176,7 @@ short _Ldunscale(short* pex, _Pft* px) {
|
|||
}
|
||||
}
|
||||
|
||||
void _Genld(_Pft* px, char code, char* p, short nsig, short xexp) {
|
||||
static void _Genld(_Pft* px, char code, char* p, short nsig, short xexp) {
|
||||
const char point = '.';
|
||||
|
||||
if (nsig <= 0) {
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
char spaces[] = " ";
|
||||
char zeroes[] = "00000000000000000000000000000000";
|
||||
|
||||
void _Putfld(_Pft*, va_list*, char, char*);
|
||||
static void _Putfld(_Pft*, va_list*, char, char*);
|
||||
|
||||
int _Printf(PrintCallback pfn, void* arg, const char* fmt, va_list ap) {
|
||||
_Pft x;
|
||||
|
@ -121,7 +121,7 @@ int _Printf(PrintCallback pfn, void* arg, const char* fmt, va_list ap) {
|
|||
}
|
||||
}
|
||||
|
||||
void _Putfld(_Pft* px, va_list* pap, char code, char* ac) {
|
||||
static void _Putfld(_Pft* px, va_list* pap, char code, char* ac) {
|
||||
px->n0 = px->nz0 = px->n1 = px->nz1 = px->n2 = px->nz2 = 0;
|
||||
|
||||
switch (code) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue