bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new module 'aligned-malloc'


From: Bruno Haible
Subject: Re: new module 'aligned-malloc'
Date: Tue, 21 Jul 2020 18:27:48 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-179-generic; KDE/5.18.0; x86_64; ; )

I wrote:
> there is hope that some systems (maybe native Windows?)
> may get aligned_alloc sooner than posix_memalign.

Oh, I was too naïve. Citing Microsoft [1][2]:

  "aligned_alloc() will probably never be implemented, as C11 specified it
   in a way that’s incompatible with our implementation (namely, that free()
   must be able to handle highly aligned allocations)."

Bruno

[1] 
https://devblogs.microsoft.com/cppblog/announcing-msvc-conforms-to-the-c-standard/
[2] 
https://devblogs.microsoft.com/cppblog/c17-features-and-stl-fixes-in-vs-2017-15-3/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]