Changes in src/fvec.c [7166ef8:1dd95c7]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/fvec.c
r7166ef8 r1dd95c7 28 28 #define aubio_vDSP_vmul vDSP_vmul 29 29 #define aubio_vDSP_vfill vDSP_vfill 30 #define aubio_catlas_set catlas_sset31 30 #else /* HAVE_AUBIO_DOUBLE */ 32 31 #define aubio_vDSP_mmov vDSP_mmovD 33 32 #define aubio_vDSP_vmul vDSP_vmulD 34 33 #define aubio_vDSP_vfill vDSP_vfillD 35 #define aubio_catlas_set catlas_dset36 34 #endif /* HAVE_AUBIO_DOUBLE */ 37 35 #endif … … 82 80 } 83 81 #else 84 //aubio_catlas_set(s->length, val, s->data, 1);85 82 aubio_vDSP_vfill(&val, s->data, 1, s->length); 86 83 #endif … … 122 119 } 123 120 124 void fvec_weighted_copy(fvec_t *in, fvec_t *weight, fvec_t *out) {125 #ifndef HAVE_ACCELERATE126 uint_t j;127 uint_t length = MIN(s->length, weight->length);128 for (j=0; j< length; j++) {129 out->data[j] = in->data[j] * weight->data[j];130 }131 #else132 aubio_vDSP_vmul(in->data, 1, weight->data, 1, out->data, 1, out->length);133 #endif /* HAVE_ACCELERATE */134 }135 136 121 void fvec_copy(fvec_t *s, fvec_t *t) { 137 122 if (s->length != t->length) {
Note: See TracChangeset
for help on using the changeset viewer.