MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / fvec_copy

Function fvec_copy

deps/aubio/src/fvec.c:129–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void 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}

Callers 2

aubio_filter_do_outplaceFunction · 0.85
aubio_pitchyinfast_doFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected