mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
added lrintf for non ISOC libcs (fixme: find a better test)
Originally committed as revision 1106 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ab253fe3c5
commit
9d85cbd93a
@ -269,4 +269,13 @@ void ff_mdct_calc(MDCTContext *s, FFTSample *out,
|
||||
const FFTSample *input, FFTSample *tmp);
|
||||
void ff_mdct_end(MDCTContext *s);
|
||||
|
||||
#if defined(__FreeBSD__) || (__bsdi__)
|
||||
/* XXX: add ISOC specific test to avoid specific BSD testing. */
|
||||
/* better than nothing implementation. */
|
||||
static inline long int lrintf(float x)
|
||||
{
|
||||
return (int)(rint(x));
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user