Displaying 4 results from an estimated 4 matches for "op_have_lrintf".
2015 Mar 21
0
use xmm intrinsics for lrintf() with mingw-w64
...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_LRINTF)
# define op_float2int(_x) (lrintf(_x))
# else
# define op_float2int(_x) (...
2012 Sep 25
0
[libopusfile PATCH] build: implement autotools build system for libopusfile. (v3)
...ble_float=yes)
+
+AS_IF([test "x$enable_float" = "xno"],
+ [enable_fixed_point=yes
+ AC_DEFINE([OP_DISABLE_FLOAT_API], [1], [Disable floating-point API])
+ ],
+ [dnl This only has to be tested for if float API is enabled
+ AC_SEARCH_LIBS([lrintf], [m], [
+ AC_DEFINE([OP_HAVE_LRINTF], [1], [Enable use of lrintf function])
+ ])
+])
+
+AS_IF([test "x$enable_fixed_point" = "xyes"], [
+ AC_DEFINE([OP_FIXED_POINT], [1], [Enable fixed-point calculation])
+])
+
+CC_ATTRIBUTE_VISIBILITY([default], [
+ CC_FLAG_VISIBILITY([CFLAGS="${CFLAGS} -fvisibility=hidde...
2012 Sep 25
3
[libopusfile PATCH] build: implement autotools build system for libopusfile. (v2)
...ble_float=yes)
+
+AS_IF([test "x$enable_float" = "xno"],
+ [enable_fixed_point=yes
+ AC_DEFINE([OP_DISABLE_FLOAT_API], [1], [Disable floating-point API])
+ ],
+ [dnl This only has to be tested for if float API is enabled
+ AC_SEARCH_LIBS([lrintf], [m], [
+ AC_DEFINE([OP_HAVE_LRINTF], [1], [Enable use of lrintf function])
+ ])
+])
+
+AS_IF([test "x$enable_fixed_point" = "xyes"], [
+ AC_DEFINE([OP_FIXED_POINT], [1], [Enable fixed-point calculation])
+])
+
+CC_ATTRIBUTE_VISIBILITY([default], [
+ CC_FLAG_VISIBILITY([CFLAGS="${CFLAGS} -fvisibility=hidde...
2012 Sep 29
2
[libopusfile PATCH] build: implement autotools build system for libopusfile. (v4)
...point API])
+ ]
+)
+
+AS_IF([test "x$enable_fixed_point" = "xyes"],
+ [AC_DEFINE([OP_FIXED_POINT], [1], [Enable fixed-point calculation])],
+ [dnl This only has to be tested for if float->fixed conversions are
required
+ AC_SEARCH_LIBS([lrintf], [m], [
+ AC_DEFINE([OP_HAVE_LRINTF], [1], [Enable use of lrintf function])
+ lrintf_notice="
+ Library for lrintf() ....... : ${ac_cv_search_lrintf}"
+ ])
+ ]
+)
+
+CC_ATTRIBUTE_VISIBILITY([default], [
+ CC_FLAG_VISIBILITY([CFLAGS="${CFLAGS} -fvisibility=hidden"])
+])
+
+CC_CHECK_CFLAGS_APPEND([-std=c89...