◐ Shell
clean mode source ↗

bpo-18835: Add PyMem_AlignedAlloc() by vstinner · Pull Request #4089 · python/cpython

@vstinner vstinner changed the title bpo-18835: Add PyMem_AlignedAlloc() [WIP] bpo-18835: Add PyMem_AlignedAlloc()

Oct 23, 2017

pitrou

skrah

skrah

skrah

@vstinner vstinner changed the title [WIP] bpo-18835: Add PyMem_AlignedAlloc() bpo-18835: Add PyMem_AlignedAlloc()

Oct 27, 2017

skrah

skrah

skrah

skrah

* Add aligned_alloc and aligned_free fields to PyMemAllocatorEx
* Rename PyMemAllocatorEx structure to PyMemAllocatorEx2 to make sure
  that C extensions are upgraded to fill the new aligned_alloc and
  aligned_free fields
* Add 6 new functions:

  * PyMem_RawAlignedAlloc()
  * PyMem_RawAlignedFree()
  * PyMem_AlignedAlloc()
  * PyMem_AlignedFree()
  * PyObject_AlignedAlloc()
  * PyObject_AlignedFree()