search for: _mm_cvtss_si32

Displaying 10 results from an estimated 10 matches for "_mm_cvtss_si32".

Did you mean: _mm_cvtsd_si32
2016 May 31
2
[PATCH 1/2] Modify autoconf tests for intrinsics to stop clang from optimizing them away.
...trin.h> + #include <time.h> ]], [[ - static __m128 mtest; - mtest = _mm_setzero_ps(); + __m128 mtest; + mtest = _mm_set1_ps((float)time(NULL)); + mtest = _mm_mul_ps(mtest, mtest); + return _mm_cvtss_si32(mtest); ]] ) AS_IF([test x"$OPUS_X86_MAY_HAVE_SSE" = x"1" && test x"$OPUS_X86_PRESUME_SSE" != x"1"], @@ -539,10 +543,13 @@ AS_IF([test x"$enable_intrinsics" = x"yes"],[ [OPUS_X86_MAY_HAVE_SSE2],...
2014 Nov 06
2
[PATCH] float_cast: Fix MSVC ARM build
...; (defined (WIN64) || defined (_WIN64)) +#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || defined (_WIN64)) && !defined(_M_ARM) #include <xmmintrin.h> __inline long int float2int(float 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 (WIN32) || defined (_WIN32)) && !defined(_M_ARM) #include &l...
2014 Nov 06
2
[PATCH] float_cast: Fix MSVC ARM build
...defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || >> defined (_WIN64)) && !defined(_M_ARM) >> #include <xmmintrin.h> >> >> __inline long int float2int(float 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 (WIN32) || >> defined (_WIN32)) &amp...
2010 Oct 16
1
WIN64 issue
...Fri Oct 15 12:09:38 2010 @@ -72,8 +72,14 @@ #include <math.h> #define float2int(x) lrint(x) -#elif (defined (WIN32) || defined (_WIN32)) +#elif (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)) #include <math.h> /* Win32 doesn't seem to have these functions. BTW, I have also compiled CELT for 64-bit Mac OS X with no problems. Cheers, John Ridges
2015 Mar 21
0
use xmm intrinsics for lrintf() with mingw-w64
...-- a/celt/float_cast.h +++ b/celt/float_cast.h @@ -61,7 +61,14 @@ ** the config.h file. */ -#if (HAVE_LRINTF) +#if (defined(__GNUC__) && defined(_WIN64)) + #include <xmmintrin.h> + static __inline long int float2int(float value) + { + return _mm_cvtss_si32(_mm_load_ss(&value)); + } + +#elif (HAVE_LRINTF) /* These defines enable functionality introduced with the 1999 ISO C ** standard. They must be defined before the inclusion of math.h to index 1441b97..29f185b 100644 --- a/src/opusfile.c +++ b/src/opusfile.c @@ -25,7 +25,9...
2014 Nov 06
2
[PATCH] float_cast: Fix MSVC ARM build
...;& (defined (WIN64) || > >>> defined (_WIN64)) && !defined(_M_ARM) > >>> #include <xmmintrin.h> > >>> > >>> __inline long int float2int(float 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 (WIN32...
2014 Nov 07
0
opus Digest, Vol 70, Issue 3
...p; (defined (WIN64) || defined (_WIN64)) +#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || defined (_WIN64)) && !defined(_M_ARM) #include <xmmintrin.h> __inline long int float2int(float 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 (WIN32) || defined (_WIN32)) && !defined(_M_ARM) #include &l...
2014 Nov 06
0
[PATCH] float_cast: Fix MSVC ARM build
...fined (_WIN64)) > +#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || defined (_WIN64)) && !defined(_M_ARM) > #include <xmmintrin.h> > > __inline long int float2int(float 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 (WIN32) || defined (_WIN32)) && !defined(_M_ARM) >...
2014 Nov 06
0
[PATCH] float_cast: Fix MSVC ARM build
...amp; _MSC_VER >= 1400) && (defined (WIN64) || >>> defined (_WIN64)) && !defined(_M_ARM) >>> #include <xmmintrin.h> >>> >>> __inline long int float2int(float 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 (WIN32) || >>> de...
2014 Nov 06
0
[PATCH] float_cast: Fix MSVC ARM build
...|| > >>> defined (_WIN64)) && !defined(_M_ARM) > >>> #include <xmmintrin.h> > >>> > >>> __inline long int float2int(float 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) &...