Changing some optimized assembly to standard C code to get openjpeg-dotnet compiling on 64-bit Windows

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2372 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2008-12-05 18:04:44 +00:00
parent 4b1f441574
commit 52eb143b44

View File

@@ -89,14 +89,7 @@ Most compilers implement their own version of this keyword ...
/* MSVC does not have lrintf */
#ifdef _MSC_VER
static INLINE long lrintf(float f){
int i;
_asm{
fld f
fistp i
};
return i;
return (long)(f + (f > 0.0 ? + 0.5 : -0.5) );
}
#endif