Commit f6215b1b authored by Loren Merritt's avatar Loren Merritt
Browse files

gcc isn't smart enough to factor out duplicate stores

Originally committed as revision 10611 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 551109d4
......@@ -499,10 +499,11 @@ static void calc_sums(int pmin, int pmax, uint32_t *data, int n, int pred_order,
res = &data[pred_order];
res_end = &data[n >> pmax];
for(i=0; i<parts; i++) {
sums[pmax][i] = 0;
uint32_t sum = 0;
while(res < res_end){
sums[pmax][i] += *(res++);
sum += *(res++);
}
sums[pmax][i] = sum;
res_end+= n >> pmax;
}
/* sums for lower levels */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment