[Ffmpeg-devel] Stack alignment
Michael Niedermayer
michaelni
Fri Feb 23 12:02:22 CET 2007
Hi
On Fri, Feb 23, 2007 at 03:59:40PM +0900, koyama tadayoshi wrote:
> Ramiro Polla <ramiro at lisha.ufsc.br> wrote:
> >I wonder for how long it has been doing this... Anyone with olders
> >versions (eg: VC6) care to test too?
>
> I've just tested and latest version of VC6 support __declspec(align(NN)).
> I also see a MS's document which mentions this option published Feb. 2002.
>
> BTW, current ff_check_alignment will fail to detected incompatible compiler
> when the variable just happens to be placed on an aligned address.
> Double checking will works better, just IMHO.
>
> DECLARE_ALIGNED_16(int, a);
> DECLARE_ALIGNED_16(int, b);
> if (((int)&a | (int)&b) & 15) {
feel free to send a patch ...
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070223/929a4980/attachment.pgp>
More information about the ffmpeg-devel
mailing list