Mercurial > libavcodec.hg
diff i386/dsputil_mmx.c @ 1115:74a46d77e061 libavcodec
* support FF_MM_FORCE
author | kabi |
---|---|
date | Fri, 07 Mar 2003 13:49:10 +0000 |
parents | f59c3f66363b |
children | ddc3b0140b8f |
line wrap: on
line diff
--- a/i386/dsputil_mmx.c Fri Mar 07 13:48:02 2003 +0000 +++ b/i386/dsputil_mmx.c Fri Mar 07 13:49:10 2003 +0000 @@ -1440,6 +1440,12 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx) { mm_flags = mm_support(); + + if (avctx->dsp_mask && FF_MM_FORCE) + mm_flags |= (avctx->dsp_mask & 0xffff); + else + mm_flags &= (avctx->dsp_mask & 0xffff); + #if 0 fprintf(stderr, "libavcodec: CPU flags:"); if (mm_flags & MM_MMX)