[FFmpeg-devel] [PATCH] Move libm replacements to new header libm.h

Ramiro Polla ramiro.polla
Fri Mar 12 15:07:28 CET 2010


2010/3/9 M?ns Rullg?rd <mans at mansr.com>:
> Michael Kostylev <michael.kostylev at gmail.com> writes:
>
>> On Tue Mar ?9 13:12:41 2010
>> M?ns Rullg?rd wrote:
>>
>>>>> ffmpeg.c uses lrintf(), which is missing on some systems.
>>>>
>>>> On which ones? Djgpp is almost dead, so I'd prefer to fix it locally.
>>>> Dietlibc? It is much more incomplete and no one cares.
>>>
>>> The DOS builds are failing because of this. We added these hacks to
>>> work around deficiencies like this.
>>
>> I remember.
>>
>>> ?Are you suggesting we drop them?
>>
>> More precisely, *lrint*(), round*() and truncf().
>
> Do we want to drop support for these systems? ?Will they be fixed
> upstream? ?If the answers to both of those questions are "no", we need
> to keep the workarounds.

On a cygwin 1.7 config.h I get:
#define HAVE_LLRINT 1
#define HAVE_LRINT 1
#define HAVE_LRINTF 1
#define HAVE_ROUND 1
#define HAVE_ROUNDF 1
#define HAVE_TRUNCF 1

On a cygwin 1.5 config.h I get:
#define HAVE_LLRINT 0
#define HAVE_LRINT 1
#define HAVE_LRINTF 1
#define HAVE_ROUND 1
#define HAVE_ROUNDF 1
#define HAVE_TRUNCF 1



More information about the ffmpeg-devel mailing list