mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-16 07:10:34 -05:00
Formatting fixes
This commit is contained in:
parent
9a7c63c46c
commit
beb454d000
@ -10,22 +10,21 @@
|
||||
#define SYSTEM_HEAP_SIZE (1024 * 1024 * 128)
|
||||
|
||||
u8* gAudioHeap;
|
||||
|
||||
u8* gSystemHeap;
|
||||
|
||||
void Heaps_Alloc(void)
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
gAudioHeap = (u8*)_aligned_malloc(AUDIO_HEAP_SIZE, 16);
|
||||
gSystemHeap = (u8*)_aligned_malloc(SYSTEM_HEAP_SIZE, 16);
|
||||
gAudioHeap = (u8*)_aligned_malloc(AUDIO_HEAP_SIZE, 0x10);
|
||||
gSystemHeap = (u8*)_aligned_malloc(SYSTEM_HEAP_SIZE, 0x10);
|
||||
#elif defined(_POSIX_VERSION) && (_POSIX_VERSION >= 200112L)
|
||||
if (posix_memalign((void**)&gAudioHeap, 16, AUDIO_HEAP_SIZE) != 0)
|
||||
if (posix_memalign((void**)&gAudioHeap, 0x10, AUDIO_HEAP_SIZE) != 0)
|
||||
gAudioHeap = NULL;
|
||||
if (posix_memalign((void**)&gSystemHeap, 16, SYSTEM_HEAP_SIZE) != 0)
|
||||
if (posix_memalign((void**)&gSystemHeap, 0x10, SYSTEM_HEAP_SIZE) != 0)
|
||||
gSystemHeap = NULL;
|
||||
#else
|
||||
gAudioHeap = (u8*)memalign(16, AUDIO_HEAP_SIZE);
|
||||
gSystemHeap = (u8*)memalign(16, SYSTEM_HEAP_SIZE);
|
||||
gAudioHeap = (u8*)memalign(0x10, AUDIO_HEAP_SIZE);
|
||||
gSystemHeap = (u8*)memalign(0x10, SYSTEM_HEAP_SIZE);
|
||||
#endif
|
||||
|
||||
assert(gAudioHeap != NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user