|
MTek-GDL 0.100.4-muffintrap
|
Workaround of windows missing aligned_alloc(aligment, size). More...
Go to the source code of this file.
Functions | |
| void * | mgdl_AllocateAlignedMemory (sizetype size) |
| Use this function when memory needs to be aligned. | |
Workaround of windows missing aligned_alloc(aligment, size).
mingw-ucrt on Windows does not have aligned_alloc(alignment, size), so this is a workaround since the alignment is only needed on Wii anyway.
| void * mgdl_AllocateAlignedMemory | ( | sizetype | size | ) |
Use this function when memory needs to be aligned.
Memory needs to be aligned for graphical and audio data on Wii. Anything that is read by gpu or audio device is safest to allocate aligned and also flush
| size | Size of memory in bytes |