← Back to team overview

cuneiform team mailing list archive

Re: MMX compilation at MSVC2005

 

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.



Follow ups

References