diff options
author | James Zern <jzern@google.com> | 2018-02-01 19:39:58 -0800 |
---|---|---|
committer | James Zern <jzern@google.com> | 2018-02-01 19:40:28 -0800 |
commit | 73d12363848dd93477334134b0f96ec2a8bdbed0 (patch) | |
tree | 2b9bbd7463da2048b4decf83f6b9061a6ed95c03 /vpx_dsp | |
parent | 534e9af53be7624c2b6df9462e6f791c0e7bb0d7 (diff) | |
download | libvpx-73d12363848dd93477334134b0f96ec2a8bdbed0.tar libvpx-73d12363848dd93477334134b0f96ec2a8bdbed0.tar.gz libvpx-73d12363848dd93477334134b0f96ec2a8bdbed0.tar.bz2 libvpx-73d12363848dd93477334134b0f96ec2a8bdbed0.zip |
inv_txfm_vsx.c: make code c90 compatible
move for loop declarations to function scope
Change-Id: I84d92a1a6ca6c5ac30aacb0f55d87ca3aef4c98f
Diffstat (limited to 'vpx_dsp')
-rw-r--r-- | vpx_dsp/ppc/inv_txfm_vsx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vpx_dsp/ppc/inv_txfm_vsx.c b/vpx_dsp/ppc/inv_txfm_vsx.c index d43a9fd18..f095cb0a4 100644 --- a/vpx_dsp/ppc/inv_txfm_vsx.c +++ b/vpx_dsp/ppc/inv_txfm_vsx.c @@ -109,6 +109,7 @@ static int16x8_t cospi31_v = { 804, 804, 804, 804, 804, 804, 804, 804 }; void vpx_idct4x4_16_add_vsx(const tran_low_t *input, uint8_t *dest, int stride) { + int i, j; int32x4_t temp1, temp2, temp3, temp4; int16x8_t step0, step1, tmp16_0, tmp16_1, t_out0, t_out1; uint8x16_t mask0 = { 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, @@ -152,8 +153,8 @@ void vpx_idct4x4_16_add_vsx(const tran_low_t *input, uint8_t *dest, output_v = vec_packsu(tmp16_0, tmp16_1); vec_vsx_st(output_v, 0, tmp_dest); - for (int i = 0; i < 4; i++) - for (int j = 0; j < 4; j++) dest[j * stride + i] = tmp_dest[j * 4 + i]; + for (i = 0; i < 4; i++) + for (j = 0; j < 4; j++) dest[j * stride + i] = tmp_dest[j * 4 + i]; } #define TRANSPOSE8x8(in0, in1, in2, in3, in4, in5, in6, in7, out0, out1, out2, \ |