ref: 794d994f0588ee2353a8c7899485a47363ff010a
parent: 171ae2cbae638a7459533303bebd6fbacce19369
author: Johann <johannkoenig@google.com>
date: Tue Feb 5 07:20:54 EST 2019
ppc: use c89 loop declaration Change-Id: Ib8ca37f1b58e9903e7efa29689a0a49f14b4d73a
--- a/vpx_dsp/ppc/fdct32x32_vsx.c
+++ b/vpx_dsp/ppc/fdct32x32_vsx.c
@@ -227,10 +227,11 @@
int16x8_t temp0[32]; // Hold stages: 1, 4, 7
int16x8_t temp1[32]; // Hold stages: 2, 5
int16x8_t temp2[32]; // Hold stages: 3, 6
+ int i;
// Stage 1
// Unrolling this loops actually slows down Power9 benchmarks
- for (int i = 0; i < 16; i++) {
+ for (i = 0; i < 16; i++) {
temp0[i] = vec_add(in[i], in[31 - i]);
// pass through to stage 3.
temp1[i + 16] = vec_sub(in[15 - i], in[i + 16]);
@@ -238,7 +239,7 @@
// Stage 2
// Unrolling this loops actually slows down Power9 benchmarks
- for (int i = 0; i < 8; i++) {
+ for (i = 0; i < 8; i++) {
temp1[i] = vec_add(temp0[i], temp0[15 - i]);
temp1[i + 8] = vec_sub(temp0[7 - i], temp0[i + 8]);
}
@@ -461,7 +462,7 @@
&out[3]);
if (pass == 0) {
- for (int i = 0; i < 32; i++) {
+ for (i = 0; i < 32; i++) {
out[i] = sub_round_shift(out[i]);
}
}