projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab253fe
)
added lrintf for non ISOC libcs (fixme: find a better test)
author
Fabrice Bellard
<fabrice@bellard.org>
Tue, 29 Oct 2002 22:38:21 +0000
(22:38 +0000)
committer
Fabrice Bellard
<fabrice@bellard.org>
Tue, 29 Oct 2002 22:38:21 +0000
(22:38 +0000)
Originally committed as revision 1106 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/dsputil.h
patch
|
blob
|
history
diff --git
a/libavcodec/dsputil.h
b/libavcodec/dsputil.h
index
2eb8651
..
f57d4aa
100644
(file)
--- 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