[FFmpeg-devel] [PATCH] fix compilation in cygwin

Vitor Sessak vitor1001
Tue Jan 12 03:10:20 CET 2010

M?ns Rullg?rd wrote:
> Michael Kostylev <michael.kostylev at gmail.com> writes:
>> On Sun Jan 10 21:55:50 2010
>> Vitor Sessak wrote:
>>>>> +#if !HAVE_EXP2F
>>>>> +static av_always_inline av_const float exp2f(float x)
>>>>> +{
>>>>> +    return exp(x) * 0.693147180559945;
>>>>> +}
>>>>> +#endif /* HAVE_EXP2F */
>>>> Same again.  exp2() should be preferred.
>>> Let's hope that at least exp2() is supported...
>> exp2() is missing in NetBSD and DragonFly.
> We have a replacement for it, so it's OK.

We have a replacement for log2(), but not for exp2().

I'm slightly favorable of adding a replacement for exp2() (as attached) 
as we do for log2(), since we can get some speed gain in platforms where 
exp2() is supported and we'll eventually need exp2() sooner or later.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_mingw4.diff
Type: text/x-patch
Size: 1448 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100111/0f1af06c/attachment.bin>

More information about the ffmpeg-devel mailing list