|
From: | Paul Eggert |
Subject: | Re: new module 'aligned-malloc' |
Date: | Wed, 22 Jul 2020 15:13:19 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 7/21/20 9:21 AM, Bruno Haible wrote:
I prefer posix_memalign to aligned_alloc, because aligned_alloc requires additionally that the SIZE is a multiple of the ALIGNMENT.
What uses of posix_memalign have a SIZE that is not a multiple of ALIGNMENT? I'm asking partly because every time I've done that in the past (admittedly not that often), I've ended up regretting it.
[Prev in Thread] | Current Thread | [Next in Thread] |