aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aacps_tablegen.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-01-27 01:24:55 +0000
committerMans Rullgard <mans@mansr.com>2012-05-05 22:04:21 +0100
commit47d18d5354e06d4ef7349449fd049b516d6b0ee2 (patch)
tree4013541c0e433ac0a7c74cf3e09134ec9c491677 /libavcodec/aacps_tablegen.c
parentbf1945af301aff54c33352e75f17aec6cb5269d7 (diff)
downloadffmpeg-47d18d5354e06d4ef7349449fd049b516d6b0ee2.tar.gz
aacps: align some arrays
This is required for SIMD optimisations. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/aacps_tablegen.c')
-rw-r--r--libavcodec/aacps_tablegen.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/libavcodec/aacps_tablegen.c b/libavcodec/aacps_tablegen.c
index 8650226d71..635737d2b9 100644
--- a/libavcodec/aacps_tablegen.c
+++ b/libavcodec/aacps_tablegen.c
@@ -69,23 +69,23 @@ int main(void)
write_float_3d_array(HB, 46, 8, 4);
printf("};\n");
- printf("static const float f20_0_8[8][7][2] = {\n");
- write_float_3d_array(f20_0_8, 8, 7, 2);
+ printf("static const DECLARE_ALIGNED(16, float, f20_0_8)[8][8][2] = {\n");
+ write_float_3d_array(f20_0_8, 8, 8, 2);
printf("};\n");
- printf("static const float f34_0_12[12][7][2] = {\n");
- write_float_3d_array(f34_0_12, 12, 7, 2);
+ printf("static const DECLARE_ALIGNED(16, float, f34_0_12)[12][8][2] = {\n");
+ write_float_3d_array(f34_0_12, 12, 8, 2);
printf("};\n");
- printf("static const float f34_1_8[8][7][2] = {\n");
- write_float_3d_array(f34_1_8, 8, 7, 2);
+ printf("static const DECLARE_ALIGNED(16, float, f34_1_8)[8][8][2] = {\n");
+ write_float_3d_array(f34_1_8, 8, 8, 2);
printf("};\n");
- printf("static const float f34_2_4[4][7][2] = {\n");
- write_float_3d_array(f34_2_4, 4, 7, 2);
+ printf("static const DECLARE_ALIGNED(16, float, f34_2_4)[4][8][2] = {\n");
+ write_float_3d_array(f34_2_4, 4, 8, 2);
printf("};\n");
- printf("static const float Q_fract_allpass[2][50][3][2] = {\n");
+ printf("static const DECLARE_ALIGNED(16, float, Q_fract_allpass)[2][50][3][2] = {\n");
write_float_4d_array(Q_fract_allpass, 2, 50, 3, 2);
printf("};\n");
- printf("static const float phi_fract[2][50][2] = {\n");
+ printf("static const DECLARE_ALIGNED(16, float, phi_fract)[2][50][2] = {\n");
write_float_3d_array(phi_fract, 2, 50, 2);
printf("};\n");