diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-01-14 04:29:19 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-01-14 04:29:19 +0000 |
commit | 8bdbae01fec3bb8395a6f90bf5a92a58ad2102f8 (patch) | |
tree | 9993ed55c06f24a007189785a4a7b41f50617cd9 | |
parent | 162c9c2e0dfe2c84d4ca2d80f9221c5e6e74f04c (diff) | |
download | ffmpeg-8bdbae01fec3bb8395a6f90bf5a92a58ad2102f8.tar.gz |
(commit by michael)
memset() in MMX
Originally committed as revision 263 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h263dec.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index be76e3030f..5e79e20051 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -162,7 +162,27 @@ static int h263_decode_frame(AVCodecContext *avctx, s->c_dc_scale = 8; } +#ifdef HAVE_MMX + if (mm_flags & MM_MMX) { + asm volatile( + "pxor %%mm7, %%mm7 \n\t" + "movl $-128*6, %%eax \n\t" + "1: \n\t" + "movq %%mm7, (%0, %%eax) \n\t" + "movq %%mm7, 8(%0, %%eax) \n\t" + "movq %%mm7, 16(%0, %%eax) \n\t" + "movq %%mm7, 24(%0, %%eax) \n\t" + "addl $32, %%eax \n\t" + " js 1b \n\t" + : : "r" (((int)s->block)+128*6) + : "%eax" + ); + }else{ + memset(s->block, 0, sizeof(s->block)); + } +#else memset(s->block, 0, sizeof(s->block)); +#endif s->mv_dir = MV_DIR_FORWARD; s->mv_type = MV_TYPE_16X16; if (s->h263_msmpeg4) { |