|
From: | Paul Eggert |
Subject: | Re: new module 'aligned-malloc' |
Date: | Wed, 22 Jul 2020 14:43:46 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 7/21/20 2:43 PM, Jeffrey Walton wrote:
Eventually I hope even Microsoft will figure out how to do aligned allocation, and even if my hope is dashed that's OK, our code will still work.I believe Redmond has _aligned_malloc.
Unfortunately it requires that the storage be freed via _aligned_free (which is basically what the newly-introduced Gnulib module does). It's better to return a pointer that you can pass to plain 'free'.
[Prev in Thread] | Current Thread | [Next in Thread] |