YAWM-ModMii-Edition/source/malloc.h
thepikachugamer 8c0269a8bc
(Hopefully) fix unsuspecting crashes when retaining Priiloader (#7)
* "memalign is busted apparently"

* accidentally used ES_GetTMDView

* "static u32 cid" - hero of time
2024-02-12 21:19:57 -05:00

11 lines
227 B
C

#include <stdlib.h>
static inline void *memalign32(size_t size)
{
return aligned_alloc(0x20, (size + 0x1F) & ~0x1F);
}
static inline void *memalign64(size_t size)
{
return aligned_alloc(0x40, (size + 0x3F) & ~0x3F);
}