[Numpy-discussion] Byte aligned arrays
heng at cantab.net
Thu Dec 20 12:38:58 EST 2012
On Thu, 2012-12-20 at 17:48 +0100, Sturla Molden wrote:
> On 19.12.2012 19:25, Henry Gomersall wrote:
> > That is not true at least under Windows 32-bit. I think also it's
> > true for Linux 32-bit from my vague recollections of testing in a
> > virtual machine. (disclaimer: both those statements _may_ be out of
> > date).
> malloc is required to return memory on 16 byte boundary on Windows.
> On Windows we can also use _aligned_malloc and _aligned_realloc to
> produce the alignment we want.
> _aligned_malloc(N, 4096); // page-aligned memory
Except I build with MinGW. Please don't tell me I need to install Visual
Studio... I have about 1GB free on my windows partition!
More information about the NumPy-Discussion