This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
Provide a fallback version of the libm function trunc
This fixes compilation on DOS. Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n0.8
Martin Storsjö
15 years ago
parent
32a128522a
commit
23d3931a6a
2 changed files
with
9 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
configure
+7
-0
libavutil/libm.h
+ 2
- 0
configure
View File
@@ -1119,6 +1119,7 @@ HAVE_LIST="
sys_videoio_h
ten_operands
threads
trunc
truncf
vfp_args
VirtualAlloc
@@ -2852,6 +2853,7 @@ check_mathfunc lrint
check_mathfunc lrintf
check_mathfunc round
check_mathfunc roundf
check_mathfunc trunc
check_mathfunc truncf
# these are off by default, so fail if requested and not available
+ 7
- 0
libavutil/libm.h
View File
@@ -86,6 +86,13 @@ static av_always_inline av_const float roundf(float x)
}
#endif /* HAVE_ROUNDF */
#if !HAVE_TRUNC
static av_always_inline av_const double trunc(double x)
{
return (x > 0) ? floor(x) : ceil(x);
}
#endif /* HAVE_TRUNC */
#if !HAVE_TRUNCF
static av_always_inline av_const float truncf(float x)
{
Write
Preview
Loading…
Cancel
Save