[Ffmpeg-cvslog] r7734 - trunk/libavcodec/ppc/dsputil_altivec.c
lu_zero
subversion
Sat Jan 27 16:09:34 CET 2007
Author: lu_zero
Date: Sat Jan 27 16:09:34 2007
New Revision: 7734
Modified:
trunk/libavcodec/ppc/dsputil_altivec.c
Log:
Simplify and avoid a warning (should be faster on Cell and certain G4 revisions)
Modified: trunk/libavcodec/ppc/dsputil_altivec.c
==============================================================================
--- trunk/libavcodec/ppc/dsputil_altivec.c (original)
+++ trunk/libavcodec/ppc/dsputil_altivec.c Sat Jan 27 16:09:34 2007
@@ -1107,12 +1107,10 @@
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 */ \
More information about the ffmpeg-cvslog
mailing list