mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
dsputil: restore mistakenly removed hunk of disabled code
This particular part serves to document the optimized code variant.
This commit is contained in:
parent
9bc8bcddbd
commit
e463f0e979
@ -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];
|
||||
@ -196,6 +206,7 @@ static int pix_norm1_c(uint8_t * pix, int line_size)
|
||||
s += sq[(x>>8)&0xff];
|
||||
s += sq[(x>>16)&0xff];
|
||||
s += sq[(x>>24)&0xff];
|
||||
#endif
|
||||
#endif
|
||||
pix += 8;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user