From 0cc8a5d0885396bfec7e02f1aea9e5eee386855a Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Wed, 29 Sep 2010 14:03:30 +0000 Subject: [PATCH] Remove mv_mask variable. Replace the related pand -1/0 instructions by either a pxor, or remove the instruction alltogether. Altogether, this saves 1 instruction. Originally committed as revision 25255 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/x86/h264dsp_mmx.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/libavcodec/x86/h264dsp_mmx.c b/libavcodec/x86/h264dsp_mmx.c index 8743456bc7..92d08d90a9 100644 --- a/libavcodec/x86/h264dsp_mmx.c +++ b/libavcodec/x86/h264dsp_mmx.c @@ -66,14 +66,15 @@ void ff_h264_idct_add8_sse2 (uint8_t **dest, const int *block_offset, DCTEL static av_always_inline void h264_loop_filter_strength_iteration_mmx2(int16_t bS[2][4][4], uint8_t nnz[40], int8_t ref[2][40], int16_t mv[2][40][2], int bidir, int edges, int step, - int mask_mv, int dir, const int d_idx) + int mask_mv, int dir, const int d_idx, + const uint64_t mask_dir) { - DECLARE_ALIGNED(8, const uint64_t, mask_dir) = dir ? 0 : 0xffffffffffffffffULL; int b_idx, edge; for( b_idx=12, edge=0; edge