shithub: aubio

Download patch

ref: b65230ac69ae27a954008e5e1bce96193363c413
parent: 3f90b7ae734d82cfa3fa77779af3607dba98ce7b
author: Paul Brossier <piem@piem.org>
date: Sun Oct 1 11:41:41 EDT 2017

src/aubio_priv.h: fix for double precision mode

--- a/src/aubio_priv.h
+++ b/src/aubio_priv.h
@@ -135,8 +135,8 @@
 #define aubio_ippsMulC        ippsMulC_32f
 #define aubio_ippsAddC        ippsAddC_32f
 #define aubio_ippsLn          ippsLn_32f_A21
-#define aubio_ippsMean        ippsMean_32f
-#define aubio_ippsSum         ippsSum_32f
+#define aubio_ippsMean(a,b,c) ippsMean_32f(a, b, c, ippAlgHintFast)
+#define aubio_ippsSum(a,b,c)  ippsSum_32f(a, b, c, ippAlgHintFast)
 #define aubio_ippsMax         ippsMax_32f
 #define aubio_ippsMin         ippsMin_32f
 #else /* HAVE_AUBIO_DOUBLE */
--- a/src/mathutils.c
+++ b/src/mathutils.c
@@ -160,7 +160,7 @@
 {
   smpl_t tmp = 0.0;
 #if defined(HAVE_INTEL_IPP)
-  aubio_ippsMean(s->data, (int)s->length, &tmp, ippAlgHintFast);
+  aubio_ippsMean(s->data, (int)s->length, &tmp);
   return tmp;
 #elif defined(HAVE_ACCELERATE)
   aubio_vDSP_meanv(s->data, 1, &tmp, s->length);
@@ -179,7 +179,7 @@
 {
   smpl_t tmp = 0.0;
 #if defined(HAVE_INTEL_IPP)
-  aubio_ippsSum(s->data, (int)s->length, &tmp, ippAlgHintFast);
+  aubio_ippsSum(s->data, (int)s->length, &tmp);
 #elif defined(HAVE_ACCELERATE)
   aubio_vDSP_sve(s->data, 1, &tmp, s->length);
 #else