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

2017-10-30 Thread Victor Stinner
2017-10-27 10:17 GMT+02:00 Stefan Krah : > 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. I'm not really opposed

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

2017-10-28 Thread Stefan Krah
On Sat, Oct 28, 2017 at 03:43:47PM +1000, Nick Coghlan wrote: > 1. CPython's own support for platforms where we don't have a native aligned > memory allocation API to call is covered by PEP 11, so if all current > buildbots still work, then it will be up to the folks interested in a > platform

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

2017-10-27 Thread Nick Coghlan
On 27 October 2017 at 18:17, Stefan Krah wrote: > 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. > I think Victor's

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

2017-10-27 Thread Stefan Krah
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: