This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PPC32 Linuxthreads Chance MALLOC_ALIGNMENT for VMX


Steve Munroe wrote:
> The Altivec/VMX instructions require 16-byte alignment. So we need to
> change the default alignment for malloc/calloc/realloc to avoid SIGILL
> when uses malloc for vector types.
> 
> Any problems with this change?

Yes.  malloc memory needs only be aligned for the standard types.

If you need higher alignment use posix_memalign.

Other archs have the same requirement.  We are not going to waste memory
for these special cases which must be handled special to be portable anyway.

-- 
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]