visual studio lrintf is very slow - do not use

This commit is contained in:
Aaron Boxer 2015-06-15 20:17:01 -04:00 committed by Antonin Descampe
parent 56d3f5af6e
commit 1a8f929111
1 changed files with 1 additions and 1 deletions

View File

@ -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));