[FFmpeg-devel] [PATCH] Unconditionally run emms on calls to emms_c() if HAVE_MMX is defined

Alexander Strange astrange
Fri Jul 16 23:05:39 CEST 2010


On Jul 16, 2010, at 1:48 PM, M?ns Rullg?rd wrote:

> Eli Friedman <eli.friedman at gmail.com> writes:
> 
>> On Tue, Jul 6, 2010 at 3:06 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
>>> 2010/7/4 M?ns Rullg?rd <mans at mansr.com>:
>>>> _I_ think the idea is OK, but your patch isn't quite what I intended.
>>>> I'm waiting for Reinhard to voice his opinion.  He knows what distros
>>>> want, can, and can't.
>>> 
>>> What were you thinking of?
> 
> If there's a way to detect -mfpmath=sse being used, the emms
> instruction could be dropped then too.

Check for __SSE_MATH__. But you can't detect -mfpmath=sse+387 and the system libraries can still use 387 if they want, so I don't think this would work.



More information about the ffmpeg-devel mailing list