[issue18835] Add aligned memory variants to the suite of PyMem functions/macros
STINNER Victor
report at bugs.python.org
Tue Oct 31 10:26:16 EDT 2017
STINNER Victor <victor.stinner at gmail.com> added the comment:
Stefan Krah: "we care about the C11 restriction? (...) "size - number of bytes to allocate. An integral multiple of alignment" (...) posix_memalign and _aligned_malloc don't care about the multiple."
I prefer to ignore this restriction at this point.
I wouldn't be surprised if posix_memalign() and _aligned_malloc() already align the size for us internally.
We can add the restriction later, if needed.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue18835>
_______________________________________
More information about the Python-bugs-list
mailing list