shithub: aubio

Download patch

ref: 6bb268b1f41c1a8275b6da56f88630f4aa4cb5b6
parent: 39c4721d573e42ab1b96a9399c69dd8f2babca09
author: Paul Brossier <piem@piem.org>
date: Sat Sep 5 05:48:46 EDT 2015

src/fvec.c: add variant for fvec_set_all using catlas

--- a/src/fvec.c
+++ b/src/fvec.c
@@ -27,10 +27,12 @@
 #define aubio_vDSP_mmov       vDSP_mmov
 #define aubio_vDSP_vmul       vDSP_vmul
 #define aubio_vDSP_vfill      vDSP_vfill
+#define aubio_catlas_set      catlas_sset
 #else /* HAVE_AUBIO_DOUBLE */
 #define aubio_vDSP_mmov       vDSP_mmovD
 #define aubio_vDSP_vmul       vDSP_vmulD
 #define aubio_vDSP_vfill      vDSP_vfillD
+#define aubio_catlas_set      catlas_dset
 #endif /* HAVE_AUBIO_DOUBLE */
 #endif
 
@@ -79,6 +81,7 @@
     s->data[j] = val;
   }
 #else
+  //aubio_catlas_set(s->length, val, s->data, 1);
   aubio_vDSP_vfill(&val, s->data, 1, s->length);
 #endif
 }