mirror of
https://github.com/modmii/YAWM-ModMii-Edition.git
synced 2024-11-22 16:19:19 +01:00
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);
|
||
|
}
|