Hi,

On Tue, May 24, 2011 at 12:57 PM, Ronald S. Bultje <[email protected]> wrote:
> 2011/5/24 Måns Rullgård <[email protected]>:
>> "Ronald S. Bultje" <[email protected]> writes:
>>
>>> diff --git a/libavutil/internal.h b/libavutil/internal.h
>>> index e890ae7..6427dc5 100644
>>> --- a/libavutil/internal.h
>>> +++ b/libavutil/internal.h
>>> @@ -223,4 +223,18 @@
>>>  #   define ONLY_IF_THREADS_ENABLED(x) NULL
>>>  #endif
>>>
>>> +#if HAVE_MMX
>>> +/**
>>> + * Empty mmx state.
>>> + * this must be called between any dsp function and float/double code.
>>> + * for example sin(); dsp->idct_put(); emms_c(); cos()
>>> + */
>>> +#define emms_c()
>>> +#else /* HAVE_MMX */
>>> +static inline void emms_c(void)
>>
>> av_always_inline might be a good idea here.
>>
>>> +{
>>> +    __asm__ volatile ("emms;":::"memory");
>>
>> I'd drop the ; after emms and add spaces around ::: while at it.
>
> Done locally.

new patch attached.

Ronald

Attachment: 0001-Move-emms_c-from-libavcodec-to-libavutil.patch
Description: Binary data

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to