A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
Memory.hh File Reference

Go to the source code of this file.

Namespaces

namespace  Kinoko

Typedefs

typedef int8_t s8
typedef int16_t s16
typedef int32_t s32
typedef int64_t s64
typedef uint8_t u8
typedef uint16_t u16
typedef uint32_t u32
typedef uint64_t u64
typedef float f32
typedef double f64

Functions

static uintptr_t GetAddrNum (const void *p)
static void * GetAddrPtr (uintptr_t n)
static void * AddOffset (const void *p, size_t offset)
static void * SubOffset (const void *p, size_t offset)
static uintptr_t RoundUp (uintptr_t value, uintptr_t alignment)
static void * RoundUp (void *ptr, uintptr_t alignment)
static uintptr_t RoundDown (uintptr_t value, uintptr_t alignment)
static void * RoundDown (void *ptr, uintptr_t alignment)