I feel your pain. Just had to do this a week ago. And I couldn't use _aligned_malloc family because they're MSVC specific, and I wanted CRT-independent code (so WinAPI or malloc).
Generally the vast majority of allocators do not support the custom alignment, which is sad.
September 2, 2010 at 9:25 AM
How the fuck is there no HeapAllocAligned on Win32 ?
and yes I know I can use clib or do it myself or whatever, but still, WTF ?
"08-10-10 - HeapAllocAligned"
1 Comment -
I feel your pain. Just had to do this a week ago. And I couldn't use _aligned_malloc family because they're MSVC specific, and I wanted CRT-independent code (so WinAPI or malloc).
Generally the vast majority of allocators do not support the custom alignment, which is sad.
September 2, 2010 at 9:25 AM