Altivec + 16 byte alignment

Gianni Mariani gmariani@chaincast.com
Tue Feb 11 14:49:00 GMT 2003


Gianni Mariani wrote:

> Gianni Tedesco wrote:
>
>>
>> This seems to work for global variables, but when allocated on the
>> stack, my structures end up mis-aligned (on to 8-byte boundaries) which
>> totally screws up the results of the altivec computation.
>
..

> This is a problem with the malloc implementation.

I should read the question better next time ... *STACK* ...

....

Well, you could use alloca and simply align it yourself ....

Yours
Dipstick






More information about the Gcc mailing list