Mercurial > libavcodec.hg
changeset 1115:74a46d77e061 libavcodec
* support FF_MM_FORCE
author | kabi |
---|---|
date | Fri, 07 Mar 2003 13:49:10 +0000 |
parents | e4762efc3617 |
children | 86a5d0ce86bf |
files | i386/dsputil_mmx.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
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)