diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2007-01-27 15:09:34 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2007-01-27 15:09:34 +0000 |
commit | fe70f25c58d2c738a875d76b71a62249d79afb8e (patch) | |
tree | ff735988ad91b40b9454dac07eee75dc28ad4768 /libavcodec/ppc | |
parent | 4b3b5a2337f851b7d532231436669faef1caceb8 (diff) | |
download | ffmpeg-streaming-fe70f25c58d2c738a875d76b71a62249d79afb8e.zip ffmpeg-streaming-fe70f25c58d2c738a875d76b71a62249d79afb8e.tar.gz |
Simplify and avoid a warning (should be faster on Cell and certain G4 revisions)
Originally committed as revision 7734 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r-- | libavcodec/ppc/dsputil_altivec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/ppc/dsputil_altivec.c b/libavcodec/ppc/dsputil_altivec.c index 6f48893..bbc53d7 100644 --- a/libavcodec/ppc/dsputil_altivec.c +++ b/libavcodec/ppc/dsputil_altivec.c @@ -1107,12 +1107,10 @@ POWERPC_PERF_START_COUNT(altivec_hadamard8_diff8x8_num, 1); register vector signed short srcV, dstV; \ register vector signed short but0, but1, but2, op1, op2, op3; \ src1 = vec_ld(stride * i, src); \ - if ((((stride * i) + (unsigned long)src) & 0x0000000F) > 8) \ - src2 = vec_ld((stride * i) + 16, src); \ + src2 = vec_ld((stride * i) + 15, src); \ srcO = vec_perm(src1, src2, vec_lvsl(stride * i, src)); \ dst1 = vec_ld(stride * i, dst); \ - if ((((stride * i) + (unsigned long)dst) & 0x0000000F) > 8) \ - dst2 = vec_ld((stride * i) + 16, dst); \ + dst2 = vec_ld((stride * i) + 15, dst); \ dstO = vec_perm(dst1, dst2, vec_lvsl(stride * i, dst)); \ /* promote the unsigned chars to signed shorts */ \ /* we're in the 8x8 function, we only care for the first 8 */ \ |