changeset 1011:46fa5a29eae1 trunk

[svn] - yes this lrintf stuff needs to go
author nenolod
date Mon, 08 May 2006 21:05:33 -0700
parents 29feaace84d0
children a29125f98180
files Plugins/Input/aac/libfaad2/common.h
diffstat 1 files changed, 0 insertions(+), 29 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/aac/libfaad2/common.h	Mon May 08 06:56:47 2006 -0700
+++ b/Plugins/Input/aac/libfaad2/common.h	Mon May 08 21:05:33 2006 -0700
@@ -294,35 +294,6 @@
       *y2 = MUL_F(x2, c1) - MUL_F(x1, c2);
   }
 
-
-  #ifdef _WIN32
-    #define HAS_LRINTF
-    static INLINE int lrintf(float f)
-    {
-        int i;
-        __asm
-        {
-            fld   f
-            fistp i
-        }
-        return i;
-    }
-  #elif (defined(__i386__) && defined(__GNUC__))
-    #define HAS_LRINTF
-    // from http://www.stereopsis.com/FPU.html
-    static INLINE int lrintf(float f)
-    {
-        int i;
-        __asm__ __volatile__ (
-            "flds %1        \n\t"
-            "fistpl %0      \n\t"
-            : "=m" (i)
-            : "m" (f));
-        return i;
-    }
-  #endif
-
-
   #ifdef __ICL /* only Intel C compiler has fmath ??? */
 
     #include <mathf.h>