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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user