summaryrefslogtreecommitdiff
path: root/vp8/encoder/dct.c
diff options
context:
space:
mode:
authorJim Bankoski <jimbankoski@google.com>2016-07-18 06:54:50 -0700
committerJim Bankoski <jimbankoski@google.com>2016-07-18 06:54:50 -0700
commit3e04114f3d6d1bc746a376f375dc18c5a941e5aa (patch)
treea126483089f817695ff547fc976aa07654d7abc7 /vp8/encoder/dct.c
parent106a8a153650e5993bff62c4030758a35b54c348 (diff)
downloadlibvpx-3e04114f3d6d1bc746a376f375dc18c5a941e5aa.tar
libvpx-3e04114f3d6d1bc746a376f375dc18c5a941e5aa.tar.gz
libvpx-3e04114f3d6d1bc746a376f375dc18c5a941e5aa.tar.bz2
libvpx-3e04114f3d6d1bc746a376f375dc18c5a941e5aa.zip
prepend ++ instead of post in for loops.
Applied the following regex : search for: (for.*\(.*;.*;) ([a-zA-Z_]*)\+\+\) replace with: \1 ++\2) This misses some for loops: ie : for (mb_col = 0; mb_col < oci->mb_cols; mb_col++, mi++) Change-Id: Icf5f6fb93cced0992e0bb71d2241780f7fb1f0a8
Diffstat (limited to 'vp8/encoder/dct.c')
-rw-r--r--vp8/encoder/dct.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vp8/encoder/dct.c b/vp8/encoder/dct.c
index 8635343e8..7d214eafb 100644
--- a/vp8/encoder/dct.c
+++ b/vp8/encoder/dct.c
@@ -18,7 +18,7 @@ void vp8_short_fdct4x4_c(short *input, short *output, int pitch) {
short *ip = input;
short *op = output;
- for (i = 0; i < 4; i++) {
+ for (i = 0; i < 4; ++i) {
a1 = ((ip[0] + ip[3]) * 8);
b1 = ((ip[1] + ip[2]) * 8);
c1 = ((ip[1] - ip[2]) * 8);
@@ -35,7 +35,7 @@ void vp8_short_fdct4x4_c(short *input, short *output, int pitch) {
}
ip = output;
op = output;
- for (i = 0; i < 4; i++) {
+ for (i = 0; i < 4; ++i) {
a1 = ip[0] + ip[12];
b1 = ip[4] + ip[8];
c1 = ip[4] - ip[8];
@@ -64,7 +64,7 @@ void vp8_short_walsh4x4_c(short *input, short *output, int pitch) {
short *ip = input;
short *op = output;
- for (i = 0; i < 4; i++) {
+ for (i = 0; i < 4; ++i) {
a1 = ((ip[0] + ip[2]) * 4);
d1 = ((ip[1] + ip[3]) * 4);
c1 = ((ip[1] - ip[3]) * 4);
@@ -81,7 +81,7 @@ void vp8_short_walsh4x4_c(short *input, short *output, int pitch) {
ip = output;
op = output;
- for (i = 0; i < 4; i++) {
+ for (i = 0; i < 4; ++i) {
a1 = ip[0] + ip[8];
d1 = ip[4] + ip[12];
c1 = ip[4] - ip[12];