Mercurial > libavcodec.hg
comparison x86/idct_mmx_xvid.c @ 10961:34a65026fa06 libavcodec
Move array specifiers outside DECLARE_ALIGNED() invocations
author | mru |
---|---|
date | Fri, 22 Jan 2010 03:25:11 +0000 |
parents | 7768bdfd4f7b |
children | b57409c0c286 |
comparison
equal
deleted
inserted
replaced
10960:10759fd39860 | 10961:34a65026fa06 |
---|---|
62 //----------------------------------------------------------------------------- | 62 //----------------------------------------------------------------------------- |
63 // Various memory constants (trigonometric values or rounding values) | 63 // Various memory constants (trigonometric values or rounding values) |
64 //----------------------------------------------------------------------------- | 64 //----------------------------------------------------------------------------- |
65 | 65 |
66 | 66 |
67 DECLARE_ALIGNED(8, static const int16_t, tg_1_16[4*4]) = { | 67 DECLARE_ALIGNED(8, static const int16_t, tg_1_16)[4*4] = { |
68 13036,13036,13036,13036, // tg * (2<<16) + 0.5 | 68 13036,13036,13036,13036, // tg * (2<<16) + 0.5 |
69 27146,27146,27146,27146, // tg * (2<<16) + 0.5 | 69 27146,27146,27146,27146, // tg * (2<<16) + 0.5 |
70 -21746,-21746,-21746,-21746, // tg * (2<<16) + 0.5 | 70 -21746,-21746,-21746,-21746, // tg * (2<<16) + 0.5 |
71 23170,23170,23170,23170}; // cos * (2<<15) + 0.5 | 71 23170,23170,23170,23170}; // cos * (2<<15) + 0.5 |
72 | 72 |
73 DECLARE_ALIGNED(8, static const int32_t, rounder_0[2*8]) = { | 73 DECLARE_ALIGNED(8, static const int32_t, rounder_0)[2*8] = { |
74 65536,65536, | 74 65536,65536, |
75 3597,3597, | 75 3597,3597, |
76 2260,2260, | 76 2260,2260, |
77 1203,1203, | 77 1203,1203, |
78 0,0, | 78 0,0, |
138 //----------------------------------------------------------------------------- | 138 //----------------------------------------------------------------------------- |
139 // Tables for mmx processors | 139 // Tables for mmx processors |
140 //----------------------------------------------------------------------------- | 140 //----------------------------------------------------------------------------- |
141 | 141 |
142 // Table for rows 0,4 - constants are multiplied by cos_4_16 | 142 // Table for rows 0,4 - constants are multiplied by cos_4_16 |
143 DECLARE_ALIGNED(8, static const int16_t, tab_i_04_mmx[32*4]) = { | 143 DECLARE_ALIGNED(8, static const int16_t, tab_i_04_mmx)[32*4] = { |
144 16384,16384,16384,-16384, // movq-> w06 w04 w02 w00 | 144 16384,16384,16384,-16384, // movq-> w06 w04 w02 w00 |
145 21407,8867,8867,-21407, // w07 w05 w03 w01 | 145 21407,8867,8867,-21407, // w07 w05 w03 w01 |
146 16384,-16384,16384,16384, // w14 w12 w10 w08 | 146 16384,-16384,16384,16384, // w14 w12 w10 w08 |
147 -8867,21407,-21407,-8867, // w15 w13 w11 w09 | 147 -8867,21407,-21407,-8867, // w15 w13 w11 w09 |
148 22725,12873,19266,-22725, // w22 w20 w18 w16 | 148 22725,12873,19266,-22725, // w22 w20 w18 w16 |
180 //----------------------------------------------------------------------------- | 180 //----------------------------------------------------------------------------- |
181 // Tables for xmm processors | 181 // Tables for xmm processors |
182 //----------------------------------------------------------------------------- | 182 //----------------------------------------------------------------------------- |
183 | 183 |
184 // %3 for rows 0,4 - constants are multiplied by cos_4_16 | 184 // %3 for rows 0,4 - constants are multiplied by cos_4_16 |
185 DECLARE_ALIGNED(8, static const int16_t, tab_i_04_xmm[32*4]) = { | 185 DECLARE_ALIGNED(8, static const int16_t, tab_i_04_xmm)[32*4] = { |
186 16384,21407,16384,8867, // movq-> w05 w04 w01 w00 | 186 16384,21407,16384,8867, // movq-> w05 w04 w01 w00 |
187 16384,8867,-16384,-21407, // w07 w06 w03 w02 | 187 16384,8867,-16384,-21407, // w07 w06 w03 w02 |
188 16384,-8867,16384,-21407, // w13 w12 w09 w08 | 188 16384,-8867,16384,-21407, // w13 w12 w09 w08 |
189 -16384,21407,16384,-8867, // w15 w14 w11 w10 | 189 -16384,21407,16384,-8867, // w15 w14 w11 w10 |
190 22725,19266,19266,-4520, // w21 w20 w17 w16 | 190 22725,19266,19266,-4520, // w21 w20 w17 w16 |