mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 15:01:53 -04:00
d2e9db3748
* renamed func_XXX to _savegpr_XX * renamed func_XXX to _restgpr_XX * renamed func_XXX to _savefpr_XX * renamed func_XXX to _restfpr_XX * cleanup functions.h and moved intrisics to mwcc.h * formatting * cleanup functions.h * fix bad-formatting from master Co-authored-by: Julgodis <>
23 lines
423 B
C
23 lines
423 B
C
#ifndef _global_h_
|
|
#define _global_h_
|
|
|
|
#define ARRAY_SIZE(o) (sizeof((o)) / sizeof(*(o)))
|
|
|
|
struct Vec {
|
|
float x, y, z;
|
|
};
|
|
|
|
#include "dolphin/types.h"
|
|
#include "functions.h"
|
|
#include "mwcc.h"
|
|
#include "os/OS.h"
|
|
#include "variables.h"
|
|
|
|
// hack to make functions that return comparisons as int match
|
|
extern int __cntlzw(unsigned int);
|
|
inline BOOL checkEqual(s32 a, s32 b) {
|
|
return (u32)__cntlzw(a - b) >> 5;
|
|
}
|
|
|
|
#endif
|