diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2002-10-29 22:38:21 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2002-10-29 22:38:21 +0000 |
commit | 9d85cbd93ab39a284f56d1ac1d6e036014d34f63 (patch) | |
tree | 1d761dc8a74045cc19ed6b1c4a2611fc6da46ea1 /libavcodec/dsputil.h | |
parent | ab253fe3c5351a72cae6f97634e806cdf76924f6 (diff) | |
download | ffmpeg-9d85cbd93ab39a284f56d1ac1d6e036014d34f63.tar.gz |
added lrintf for non ISOC libcs (fixme: find a better test)
Originally committed as revision 1106 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r-- | libavcodec/dsputil.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index 2eb8651e87..f57d4aae36 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -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 |