Closed
Description
We have a cool intrinsic called pref_align_of
. We don't respect this when allocating memory. This means things like heap-allocated SIMD will be impossible to construct without some pretty crazy hackery.
Ideally, all calls to malloc should be replaced with calls to posix_memalign
. This would exploit the undocumented "feature" of glibc that memory returned by posix_memalign can be realloc'd with the same alignment (but an assert and/or unit test for this should definitely be added).