Commit 36564c51 authored by Ramiro Polla's avatar Ramiro Polla
Browse files

Remove MinGW lrint hack.

It has been in mingw-runtime at least since version 2.4

Originally committed as revision 9594 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 979c0910
......@@ -270,21 +270,7 @@ if((y)<(x)){\
/* btw, rintf() is existing on fbsd too -- alex */
static av_always_inline long int lrintf(float x)
{
#ifdef __MINGW32__
# ifdef ARCH_X86_32
int32_t i;
asm volatile(
"fistpl %0\n\t"
: "=m" (i) : "t" (x) : "st"
);
return i;
# else
/* XXX: incorrect, but make it compile */
return (int)(x + (x < 0 ? -0.5 : 0.5));
# endif /* ARCH_X86_32 */
#else
return (int)(rint(x));
#endif /* __MINGW32__ */
}
#endif /* HAVE_LRINTF */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment