changeset 362:3629b1fbe4e6 libavutil

Remove MinGW lrint hack. It has been in mingw-runtime at least since version 2.4
author ramiro
date Wed, 11 Jul 2007 13:44:50 +0000
parents 6661c25d55aa
children 486d6f63fa10
files internal.h
diffstat 1 files changed, 0 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/internal.h	Tue Jul 10 21:52:04 2007 +0000
+++ b/internal.h	Wed Jul 11 13:44:50 2007 +0000
@@ -270,21 +270,7 @@
 /* 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 */