libnds
|
Custom types employed by libnds. More...
#include <stdint.h>
#include <stdbool.h>
Macros | |
#define | ALIGN(m) __attribute__((aligned (m))) |
aligns a struct (and other types?) to m, making sure that the size of the struct is a multiple of m. | |
#define | BIT(n) (1 << (n)) |
returns a number with the nth bit set. | |
#define | PACKED __attribute__ ((packed)) |
packs a struct (and other types?) so it won't include padding bytes. | |
Typedefs | |
typedef uint8_t | byte |
8 bit unsigned integer. | |
typedef float | float32 |
32 bit signed floating point number. | |
typedef double | float64 |
64 bit signed floating point number. | |
typedef int16_t | int16 |
16 bit signed integer. | |
typedef int32_t | int32 |
32 bit signed integer. | |
typedef int64_t | int64 |
64 bit signed integer. | |
typedef int8_t | int8 |
8 bit signed integer. | |
typedef int16_t | s16 |
16 bit signed integer. | |
typedef int32_t | s32 |
32 bit signed integer. | |
typedef int64_t | s64 |
64 bit signed integer. | |
typedef int8_t | s8 |
8 bit signed integer. | |
typedef uint16_t | u16 |
16 bit unsigned integer. | |
typedef uint32_t | u32 |
32 bit unsigned integer. | |
typedef uint64_t | u64 |
64 bit unsigned integer. | |
typedef uint8_t | u8 |
8 bit unsigned integer. | |
typedef uint16_t | uint16 |
16 bit unsigned integer. | |
typedef uint32_t | uint32 |
32 bit unsigned integer. | |
typedef uint64_t | uint64 |
64 bit unsigned integer. | |
typedef uint8_t | uint8 |
8 bit unsigned integer. | |
typedef volatile float32 | vfloat32 |
32 bit volatile signed floating point number. | |
typedef volatile float64 | vfloat64 |
64 bit volatile signed floating point number. | |
typedef volatile int16_t | vint16 |
16 bit volatile signed integer. | |
typedef volatile int32_t | vint32 |
32 bit volatile signed integer. | |
typedef volatile int64_t | vint64 |
64 bit volatile signed integer. | |
typedef volatile int8_t | vint8 |
8 bit volatile signed integer. | |
typedef void(* | VoidFn) (void) |
a function pointer that takes no arguments and doesn't return anything. | |
typedef volatile s16 | vs16 |
16 bit volatile signed integer. | |
typedef volatile s32 | vs32 |
32 bit volatile signed integer. | |
typedef volatile s64 | vs64 |
64 bit volatile signed integer. | |
typedef volatile s8 | vs8 |
8 bit volatile signed integer. | |
typedef volatile u16 | vu16 |
16 bit volatile unsigned integer. | |
typedef volatile u32 | vu32 |
32 bit volatile unsigned integer. | |
typedef volatile u64 | vu64 |
64 bit volatile unsigned integer. | |
typedef volatile u8 | vu8 |
8 bit volatile unsigned integer. | |
typedef volatile uint16_t | vuint16 |
16 bit volatile unsigned integer. | |
typedef volatile uint32_t | vuint32 |
32 bit volatile unsigned integer. | |
typedef volatile uint64_t | vuint64 |
64 bit volatile unsigned integer. | |
typedef volatile uint8_t | vuint8 |
8 bit volatile unsigned integer. | |
Custom types employed by libnds.