Re: alignment issues for sse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 17 Feb 2005, Brian Budge wrote:

great.  My problem now is that I'm declaring variables on the stack
and they're not being aligned.

Hmm, I just tried this, and for me __m128 gets automatically correctly aligned, no matter which way I arrange the local declarations...


gcc 3.3.2 and gcc 4.0.0.

Corey, you talk about advancing the pointer until it is aligned... is
there a trick like that for the stack?

{ ...

	long double aligningstuff;
        __m128      this_is_16_bytes_aligned;

	...
}

and compile with `-m128bit-long-double' (this *should* be 16 byte aligned) ???

K



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux