Skip to content
Snippets Groups Projects
Commit 27a0a5fa authored by Gregory Maxwell's avatar Gregory Maxwell
Browse files

Avoid using win32 lrintf ASM on mingw even when config.h is broken.

parent a7df9634
Branches silk_pitch_fix
No related tags found
No related merge requests found
......@@ -90,14 +90,14 @@
#include <math.h>
#define float2int(x) lrint(x)
#elif (defined (WIN64) || defined (_WIN64))
#elif (_MSC_VER >= 1400) && (defined (WIN64) || defined (_WIN64))
#include <xmmintrin.h>
__inline long int float2int(float 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>
/* Win32 doesn't seem to have these functions.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment