[FFmpeg-cvslog] r9594 - trunk/libavutil/internal.h
ramiro
subversion
Wed Jul 11 15:44:50 CEST 2007
Author: ramiro
Date: Wed Jul 11 15:44:50 2007
New Revision: 9594
Log:
Remove MinGW lrint hack.
It has been in mingw-runtime at least since version 2.4
Modified:
trunk/libavutil/internal.h
Modified: trunk/libavutil/internal.h
==============================================================================
--- trunk/libavutil/internal.h (original)
+++ trunk/libavutil/internal.h Wed Jul 11 15:44:50 2007
@@ -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 */
More information about the ffmpeg-cvslog
mailing list