sead
Loading...
Searching...
No Matches
seadTypes.h
Go to the documentation of this file.
1#ifndef SEAD_TYPES_H_
2#define SEAD_TYPES_H_
3
4#ifdef cafe
5
6#include <cstddef>
7#include <types.h>
8
9typedef unsigned long uintptr;
10typedef long sintptr;
11typedef s64 d_sintptr;
12
13typedef uintptr uintptr_t;
14typedef sintptr intptr_t;
15
16#else
17
18#error "Unknown platform"
19
20#endif // cafe
21
22// TODO: Move to the proper headers
23#define SEAD_MACRO_UTIL_ROUNDUP(x, y) ((x) + ((y) - 1) & ~((y) - 1))
24#define SEAD_MACRO_UTIL_ROUNDDOWN(x, y) ((x) & ~((y) - 1))
25
26#endif // SEAD_TYPES_H_