[SCM] libav/experimental: gcc isn't smart enough to factor out duplicate stores
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:07:39 UTC 2013
The following commit has been merged in the experimental branch:
commit f6215b1b069680a782ca28058b3ec6d9bb4a45e1
Author: Loren Merritt <lorenm at u.washington.edu>
Date: Sat Sep 29 01:54:25 2007 +0000
gcc isn't smart enough to factor out duplicate stores
Originally committed as revision 10611 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
index b2b3c84..e997bca 100644
--- a/libavcodec/flacenc.c
+++ b/libavcodec/flacenc.c
@@ -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 */
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list