ref: 410def01558b87884cf4814036f563455c923fa1
parent: 5c91523b2d49a02b4651f6abfb10209b584db441
author: Jean-Marc Valin <[email protected]>
date: Thu May 18 10:39:58 EDT 2017
reenable SSE and full sinc table
--- a/configure.ac
+++ b/configure.ac
@@ -110,6 +110,8 @@
AS_HELP_STRING([--disable-float], [Disable floating-point API]),,
enable_float=yes)
+AC_DEFINE([RESAMPLE_FULL_SINC_TABLE], [1], [Faster, takes more memory])
+
AS_IF([test "$enable_float" = "no"],
[enable_fixed_point=yes
AC_DEFINE([OP_DISABLE_FLOAT_API], [1], [Disable floating-point API])
--- a/src/resample.c
+++ b/src/resample.c
@@ -96,7 +96,7 @@
#define UINT32_MAX 4294967296U
#endif
-#ifdef _USE_SSE
+#if defined(__SSE__) && !defined(FIXED_POINT)
#include "resample_sse.h"
#endif
--- a/src/resample_sse.h
+++ b/src/resample_sse.h
@@ -71,7 +71,7 @@
return ret;
}
-#ifdef _USE_SSE2
+#ifdef __SSE2__
#include <emmintrin.h>
#define OVERRIDE_INNER_PRODUCT_DOUBLE