← Back to team overview

cuneiform team mailing list archive

Re: MMX compilation at MSVC2005

 

Maybe this is an expensive operation, but I think MSVC is warning here
because it expects it immediately (maybe a safety before overriding it on
the next run?)

Is it possible you check out if I can disable this warning safely?


Thanks,
Steven

2008/12/31 Jussi Pakkanen <jpakkane@xxxxxxxxx>

> On Wed, Dec 31, 2008 at 2:10 PM, Steven Van Ingelgem
> <steven@xxxxxxxxxxxxxx> wrote:
>
> > I receive the following warnings (under MSVC 2005)
> >
> > kern\mmx\src\mmx_ind.c(348) : warning C4799: function 'MMX_anding' has no
> > EMMS instruction
> >
> > The reason following MSDN is:
> >
> > The function has at least one MMX instruction, but does not have an EMMS
> > instruction. When a multimedia instruction is used, an EMMS instruction
> > should also be used to clear the multimedia tag word at the end of the
> MMX
> > code. For more information on EMMS instructions, see Guidelines for When
> to
> > Use EMMS.
> >
> > Does anyone know a solution for this?
>
> I seem to remember that there is a function somewhere that only calls
> EMMS (called end_mmx or something similar). The idea is to call
> several MMX functions in a row and only at the end call EMMS, which is
> an expensive operation.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~cuneiform<https://launchpad.net/%7Ecuneiform>
> Post to     : cuneiform@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~cuneiform<https://launchpad.net/%7Ecuneiform>
> More help   : https://help.launchpad.net/ListHelp
>

References