# HG changeset patch # User nenolod # Date 1147147533 25200 # Node ID 46fa5a29eae13f3b65c114659b46551c5c484f9a # Parent 29feaace84d0eefa3638b6c97040bfe150dad342 [svn] - yes this lrintf stuff needs to go diff -r 29feaace84d0 -r 46fa5a29eae1 Plugins/Input/aac/libfaad2/common.h --- 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