12 #define U64_MAX UINT64_MAX
17 #define SSIZE_MAX ((SIZE_MAX) >> 1)
44 typedef void (*voidfn)(void);
47 #define BIT(n) (1U<<(n))
50 #define CTR_ALIGN(m) __attribute__((aligned(m)))
52 #define CTR_PACKED __attribute__((packed))
54 #ifndef CTR_NO_DEPRECATION
56 #define CTR_DEPRECATED __attribute__ ((deprecated))
59 #define CTR_DEPRECATED
Structure representing CPU registers.
Definition: types.h:63
u32 sp
sp.
Definition: types.h:65
u32 pc
pc. May need to be adjusted.
Definition: types.h:67
u32 cpsr
cpsr.
Definition: types.h:68
u32 lr
lr.
Definition: types.h:66
Structure representing FPU registers.
Definition: types.h:72
u32 fpexc
fpexc.
Definition: types.h:78
u32 fpscr
fpscr.
Definition: types.h:77
volatile s8 vs8
8-bit volatile signed integer.
Definition: types.h:36
volatile u8 vu8
8-bit volatile unsigned integer.
Definition: types.h:31
int64_t s64
64-bit signed integer
Definition: types.h:29
uint64_t u64
64-bit unsigned integer
Definition: types.h:24
#define CTR_PACKED
Packs a struct (and other types?) so it won't include padding bytes.
Definition: types.h:52
volatile s64 vs64
64-bit volatile signed integer.
Definition: types.h:39
volatile u16 vu16
16-bit volatile unsigned integer.
Definition: types.h:32
volatile s32 vs32
32-bit volatile signed integer.
Definition: types.h:38
volatile s16 vs16
16-bit volatile signed integer.
Definition: types.h:37
void(* ThreadFunc)(void *)
Thread entrypoint function.
Definition: types.h:43
uint8_t u8
would be nice if newlib had this already
Definition: types.h:21
int8_t s8
8-bit signed integer
Definition: types.h:26
int16_t s16
16-bit signed integer
Definition: types.h:27
u32 Handle
Resource handle.
Definition: types.h:41
volatile u32 vu32
32-bit volatile unsigned integer.
Definition: types.h:33
s32 Result
Function result.
Definition: types.h:42
volatile u64 vu64
64-bit volatile unsigned integer.
Definition: types.h:34
uint16_t u16
16-bit unsigned integer
Definition: types.h:22
int32_t s32
32-bit signed integer
Definition: types.h:28
uint32_t u32
32-bit unsigned integer
Definition: types.h:23