[FFmpeg-devel] [PATCH] fix compilation in cygwin
    Vitor Sessak 
    vitor1001
       
    Mon Jan 11 03:55:50 CET 2010
    
    
  
M?ns Rullg?rd wrote:
> Vitor Sessak <vitor1001 at gmail.com> writes:
> 
>> +#if !HAVE_LOG2F
>> +static av_always_inline av_const float log2f(float x)
>> +{
>> +    return log(x) * 1.44269504088896340736;
>> +}
>> +#endif /* HAVE_LOG2F */
> 
> Calling log2() should be better.  Most of the bad libs have a full set
> of double-precision functions.  It's the single-precision ones, which
> were added in C99 that are often missing.
Fine, even thought NetBSD lacks it (thats why we have a configure check 
for it, so no problem there).
>> +#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...
-Vitor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_mingw3.diff
Type: text/x-patch
Size: 1277 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100110/3785a956/attachment.bin>
    
    
More information about the ffmpeg-devel
mailing list