Merge pull request #41 from mdcasey/master
Make math_funcs.h use lrint on msvc 2013
This commit is contained in:
commit
3319fd3afa
|
@ -136,7 +136,7 @@ public:
|
||||||
|
|
||||||
static int b;
|
static int b;
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER) && _MSC_VER < 1800
|
||||||
__asm fld a
|
__asm fld a
|
||||||
__asm fistp b
|
__asm fistp b
|
||||||
/*#elif defined( __GNUC__ ) && ( defined( __i386__ ) || defined( __x86_64__ ) )
|
/*#elif defined( __GNUC__ ) && ( defined( __i386__ ) || defined( __x86_64__ ) )
|
||||||
|
@ -148,7 +148,7 @@ public:
|
||||||
: "=m" (b)
|
: "=m" (b)
|
||||||
: "m" (a));*/
|
: "m" (a));*/
|
||||||
#else
|
#else
|
||||||
b=lrintf(a); //assuming everything but msvc has lrint
|
b=lrintf(a); //assuming everything but msvc 2012 or earlier has lrint
|
||||||
#endif
|
#endif
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue