search for: op_read_float_stereo

Displaying 1 result from an estimated 1 matches for "op_read_float_stereo".

2015 Mar 21
0
use xmm intrinsics for lrintf() with mingw-w64
...,9 @@ #include <limits.h> #include <string.h> #include <math.h> - +#if (defined(__GNUC__) && defined(_WIN64)) +#include <xmmintrin.h> +#endif #include "opusfile.h" /*This implementation is largely based off of libvorbisfile. @@ -2961,8 +2963,11 @@ int op_read_float_stereo(OggOpusFile *_of,float *_pcm,int _buf_size){ #else -# if defined(OP_HAVE_LRINTF) -# include <math.h> +# if (defined(__GNUC__) && defined(_WIN64)) + static __inline long int op_float2int(float _x) { + return _mm_cvtss_si32(_mm_load_ss(&_x)); + } +# elif defined(OP_HAVE_LRI...