mirror of
https://github.com/modmii/YAWM-ModMii-Edition.git
synced 2024-12-02 21:04:16 +01:00
8c0269a8bc
* "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);
|
|
} |