This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] PPC32 Linuxthreads Chance MALLOC_ALIGNMENT for VMX
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: libc-alpha at sources dot redhat dot com, sjmunroe at vnet dot ibm dot com
- Date: Fri, 12 Mar 2004 09:26:34 +0100
- Subject: Re: [PATCH] PPC32 Linuxthreads Chance MALLOC_ALIGNMENT for VMX
- References: <405097DF.5060806@us.ibm.com> <405099A4.3090701@redhat.com>
Yes. malloc memory needs only be aligned for the standard types.
If you need higher alignment use posix_memalign.
Or vec_malloc(). That's what it's there for... Oooh wait, it's
not there. Time to add it... To <altivec.h>, probably as a macro
for posix_memalign().
Segher