mirror of
https://github.com/xiph/opus.git
synced 2025-06-06 07:21:03 +00:00
float_cast: Fix MSVC ARM build
Signed-off-by: Tristan Matthews <tmatth@videolan.org>
This commit is contained in:
parent
8ab1968e13
commit
8921f82fb9
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(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || defined (_WIN64))
|
#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && defined (_M_X64)
|
||||||
#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(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN32) || defined (_WIN32))
|
#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && defined (_M_IX86)
|
||||||
#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