| 127 | } |
| 128 | |
| 129 | void fvec_copy(const fvec_t *s, fvec_t *t) { |
| 130 | if (s->length != t->length) { |
| 131 | AUBIO_ERR("trying to copy %d elements to %d elements \n", |
| 132 | s->length, t->length); |
| 133 | return; |
| 134 | } |
| 135 | #if defined(HAVE_INTEL_IPP) |
| 136 | aubio_ippsCopy(s->data, t->data, (int)s->length); |
| 137 | #elif defined(HAVE_BLAS) |
| 138 | aubio_cblas_copy(s->length, s->data, 1, t->data, 1); |
| 139 | #elif defined(HAVE_ACCELERATE) |
| 140 | aubio_vDSP_mmov(s->data, t->data, 1, s->length, 1, 1); |
| 141 | #elif defined(HAVE_MEMCPY_HACKS) |
| 142 | memcpy(t->data, s->data, t->length * sizeof(smpl_t)); |
| 143 | #else |
| 144 | uint_t j; |
| 145 | for (j = 0; j < t->length; j++) { |
| 146 | t->data[j] = s->data[j]; |
| 147 | } |
| 148 | #endif |
| 149 | } |
no outgoing calls
no test coverage detected