This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 2/2] manual/memory.texi: Document aligned_alloc.
- From: Paul Eggert <eggert at cs dot ucla dot edu>
- To: Will Newton <will dot newton at linaro dot org>
- Cc: libc-alpha <libc-alpha at sourceware dot org>, Patch Tracking <patches at linaro dot org>
- Date: Thu, 07 Nov 2013 09:06:14 -0800
- Subject: Re: [PATCH 2/2] manual/memory.texi: Document aligned_alloc.
- Authentication-results: sourceware.org; auth=none
- References: <527A6F4E dot 4020006 at linaro dot org> <527A95D5 dot 2060604 at cs dot ucla dot edu> <CANu=DmiyupjQqKYf4pzxR4xd5PwNUV+Gqgtv8N8SNV94F56CSw at mail dot gmail dot com>
On 11/07/2013 12:33 AM, Will Newton wrote:
> The majority of
> code out there seems to be using posix_memalign and it is not
> deprecated (i.e. it remains in currently applicable standards).
> aligned_alloc seems pretty much unused AFAICT.
This is mainly because posix_memalign has been there for
years and aligned_alloc is new. The newer interface is clearly better,
and the documentation shouldn't recommend the worse interface.
It's no big deal; if you want to mention both,
go ahead -- but please at least mention aligned_alloc first.
This thread reminded me to change GNU Emacs to prefer aligned_alloc to
posix_memalign if available. Thanks!
http://bzr.savannah.gnu.org/lh/emacs/trunk/revision/115014