visual studio lrintf is very slow - do not use
This commit is contained in:
parent
56d3f5af6e
commit
1a8f929111
|
@ -119,7 +119,7 @@
|
|||
#endif
|
||||
|
||||
/* MSVC before 2013 and Borland C do not have lrintf */
|
||||
#if defined(_MSC_VER) && (_MSC_VER < 1800) || defined(__BORLANDC__)
|
||||
#if defined(_MSC_VER) || defined(__BORLANDC__)
|
||||
static INLINE long lrintf(float f){
|
||||
#ifdef _M_X64
|
||||
return (long)((f>0.0f) ? (f + 0.5f):(f -0.5f));
|
||||
|
|
Loading…
Reference in New Issue