Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-07-18 20:03:28 +0400
committerDiego Biurrun <diego@biurrun.de>2011-07-18 20:04:56 +0400
commite463f0e9790b4ee00b1a0572e5de600476ee0618 (patch)
treeec4d53415aaa63ac9d8b699fef2bd575577bed3c /libavcodec/dsputil.c
parent9bc8bcddbd4fc394e2268e9849dcbf3bad6de980 (diff)
dsputil: restore mistakenly removed hunk of disabled code
This particular part serves to document the optimized code variant.
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r--libavcodec/dsputil.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index 6cbbf3d82e..f24985ce4c 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
@@ -175,6 +175,16 @@ static int pix_norm1_c(uint8_t * pix, int line_size)
s = 0;
for (i = 0; i < 16; i++) {
for (j = 0; j < 16; j += 8) {
+#if 0
+ s += sq[pix[0]];
+ s += sq[pix[1]];
+ s += sq[pix[2]];
+ s += sq[pix[3]];
+ s += sq[pix[4]];
+ s += sq[pix[5]];
+ s += sq[pix[6]];
+ s += sq[pix[7]];
+#else
#if LONG_MAX > 2147483647
register uint64_t x=*(uint64_t*)pix;
s += sq[x&0xff];
@@ -197,6 +207,7 @@ static int pix_norm1_c(uint8_t * pix, int line_size)
s += sq[(x>>16)&0xff];
s += sq[(x>>24)&0xff];
#endif
+#endif
pix += 8;
}
pix += line_size - 16;