shithub: aubio

Download patch

ref: b046c8c7dd292b931f6c002d748e2fc180520424
parent: 50961b97eaa535c6f21493dedeaab3b22c7a9546
author: Paul Brossier <piem@piem.org>
date: Sun Sep 6 06:26:05 EDT 2015

src/aubio_priv.h: add aliases for cblas_xswap

--- a/src/aubio_priv.h
+++ b/src/aubio_priv.h
@@ -103,9 +103,13 @@
 #if !HAVE_AUBIO_DOUBLE
 #define aubio_catlas_set      catlas_sset
 #define aubio_cblas_copy      cblas_scopy
+#define aubio_cblas_swap      cblas_sswap
+#define aubio_cblas_dot       cblas_sdot
 #else /* HAVE_AUBIO_DOUBLE */
 #define aubio_catlas_set      catlas_dset
 #define aubio_cblas_copy      cblas_dcopy
+#define aubio_cblas_swap      cblas_dswap
+#define aubio_cblas_dot       cblas_ddot
 #endif /* HAVE_AUBIO_DOUBLE */
 #endif /* HAVE_ATLAS */
 
--- a/src/mathutils.c
+++ b/src/mathutils.c
@@ -260,7 +260,7 @@
   }
 #else
   uint_t half = s->length / 2;
-  aubio_cblas_xswap(half, s->data, 1, s->data + half, 1);
+  aubio_cblas_swap(half, s->data, 1, s->data + half, 1);
 #endif
 }