mirror of
https://github.com/HarbourMasters/Starship
synced 2026-07-09 15:05:20 -04:00
Partial Sector Y decomp (#103)
* allbut2 * quick naming cleanup * post merge warning/error cleanup * hex, enums, extern funcs * data * bss * u * format * review stuff * format review stuff * reorder externs * suggestions
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#define SQ(x) ((x) * (x))
|
||||
#define VEC3F_SQ(vec) (SQ((vec).x) + SQ((vec).y) + SQ((vec).z))
|
||||
#define DOT_XYZ(a, b) ((a).x * (b).x + (a).y * (b).y + (a).z * (b).z)
|
||||
#define ABS(x) ((x) >= 0 ? (x) : -(x))
|
||||
|
||||
#define USEC_TO_CYCLES(n) (((u64)(n)*(osClockRate/15625LL))/(1000000LL/15625LL))
|
||||
#define MSEC_TO_CYCLES(n) (USEC_TO_CYCLES((n) * 1000LL))
|
||||
|
||||
Reference in New Issue
Block a user