[Python-Dev] If aligned_alloc() is missing on your platform, please let us know. (original) (raw)

Stefan Krah stefan at bytereef.org
Fri Oct 27 04:17:22 EDT 2017


Hello,

we want to add aligned versions of allocation functions to 3.7:

https://bugs.python.org/issue18835

C11 has aligned_alloc().

Linux, BSD, OSX, MSVC, Android all have either posix_memalign() or _aligned_malloc().

Cygwin apparently has posix_memalign().

MinGW has:

https://github.com/Alexpux/mingw-w64/blob/master/mingw-w64-crt/misc/mingw-aligned-malloc.c

Victor wrote a patch and would like to avoid adding a (probably unnecessary) emulation function. I agree with that.

So if any platform does not have some form of aligned_alloc(), please speak up.

Stefan Krah



More information about the Python-Dev mailing list