mirror of
https://github.com/modmii/YAWM-ModMii-Edition.git
synced 2025-02-26 09:23:39 +01:00

* "memalign is busted apparently" * accidentally used ES_GetTMDView * "static u32 cid" - hero of time
11 lines
227 B
C
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);
|
|
} |