[Ffmpeg-devel] [patch] strict-aliasing support
Hervé W.
H.O.W.aka.V+ffmpeg
Tue Jul 4 13:13:23 CEST 2006
On 04/07/06, Luca Barbato <lu_zero at gentoo.org> wrote:
>
> Could you please change the check as Michael suggested?
> Currently we use alignment for arrays of int/short but would be nicer to
> know what would burn us later.
>
> lu
Okay.
-V
output:
______________________________________________________
3.4.4 (mingw special)
__attribute__((aligned(8))
&a = 0022FF57, &b = 0022FF56, &c = 0022FF55 pointer
&a = 2293591 , &b = 2293590 , &c = 2293589 decimal integer
&a = 10577527, &b = 10577526, &c = 10577525 octal integer
__alignof__(a) = 8, __alignof__(b) = 8, __alignof__(c) = 8
__attribute__((aligned(16))
&d = 0022FF54, &e = 0022FF53, &f = 0022FF52
&d = 2293588, &e = 2293587, &f = 2293586
&d = 10577524, &e = 10577523, &f = 10577522
__alignof__(d) = 16, __alignof__(e) = 16, __alignof__(f) = 16
__attribute__((aligned(32))
&g = 0022FF51, &h = 0022FF50, &i = 0022FF4F
&g = 2293585, &h = 2293584, &i = 2293583
&g = 10577521, &h = 10577520, &i = 10577517
__alignof__(g) = 32, __alignof__(h) = 32, __alignof__(i) = 32
______________________________________________________
3.4.2 (mingw-special)
__attribute__((aligned(8))
&a = 0022FF57, &b = 0022FF56, &c = 0022FF55 pointer
&a = 2293591 , &b = 2293590 , &c = 2293589 decimal integer
&a = 10577527, &b = 10577526, &c = 10577525 octal integer
__alignof__(a) = 8, __alignof__(b) = 8, __alignof__(c) = 8
__attribute__((aligned(16))
&d = 0022FF54, &e = 0022FF53, &f = 0022FF52
&d = 2293588, &e = 2293587, &f = 2293586
&d = 10577524, &e = 10577523, &f = 10577522
__alignof__(d) = 16, __alignof__(e) = 16, __alignof__(f) = 16
__attribute__((aligned(32))
&g = 0022FF51, &h = 0022FF50, &i = 0022FF4F
&g = 2293585, &h = 2293584, &i = 2293583
&g = 10577521, &h = 10577520, &i = 10577517
__alignof__(g) = 32, __alignof__(h) = 32, __alignof__(i) = 32
______________________________________________________
2.95.3-8 (mingw special)
__attribute__((aligned(8))
&a = 0022FF67, &b = 0022FF66, &c = 0022FF65 pointer
&a = 2293607 , &b = 2293606 , &c = 2293605 decimal integer
&a = 10577547, &b = 10577546, &c = 10577545 octal integer
__alignof__(a) = 1, __alignof__(b) = 1, __alignof__(c) = 1
__attribute__((aligned(16))
&d = 0022FF64, &e = 0022FF63, &f = 0022FF62
&d = 2293604, &e = 2293603, &f = 2293602
&d = 10577544, &e = 10577543, &f = 10577542
__alignof__(d) = 1, __alignof__(e) = 1, __alignof__(f) = 1
__attribute__((aligned(32))
&g = 0022FF61, &h = 0022FF60, &i = 0022FF5F
&g = 2293601, &h = 2293600, &i = 2293599
&g = 10577541, &h = 10577540, &i = 10577537
__alignof__(g) = 1, __alignof__(h) = 1, __alignof__(i) = 1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_mn.c
Type: application/octet-stream
Size: 1537 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060704/32619faf/attachment.obj>
More information about the ffmpeg-devel
mailing list