Avoid using win32 lrintf ASM on mingw even when config.h is broken.
This commit is contained in:
parent
a7df963437
commit
27a0a5fa46
1 changed files with 2 additions and 2 deletions
|
@ -90,14 +90,14 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#define float2int(x) lrint(x)
|
#define float2int(x) lrint(x)
|
||||||
|
|
||||||
#elif (defined (WIN64) || defined (_WIN64))
|
#elif (_MSC_VER >= 1400) && (defined (WIN64) || defined (_WIN64))
|
||||||
#include <xmmintrin.h>
|
#include <xmmintrin.h>
|
||||||
|
|
||||||
__inline long int float2int(float value)
|
__inline long int float2int(float value)
|
||||||
{
|
{
|
||||||
return _mm_cvtss_si32(_mm_load_ss(&value));
|
return _mm_cvtss_si32(_mm_load_ss(&value));
|
||||||
}
|
}
|
||||||
#elif (defined (WIN32) || defined (_WIN32))
|
#elif (_MSC_VER >= 1400) && (defined (WIN32) || defined (_WIN32))
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
/* Win32 doesn't seem to have these functions.
|
/* Win32 doesn't seem to have these functions.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue