projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
152ed05
)
src/spectral/fft.c: use memcpy
author
Paul Brossier
<piem@piem.org>
Sat, 5 Sep 2015 00:00:43 +0000
(
02:00
+0200)
committer
Paul Brossier
<piem@piem.org>
Sat, 5 Sep 2015 00:00:43 +0000
(
02:00
+0200)
src/spectral/fft.c
patch
|
blob
|
history
diff --git
a/src/spectral/fft.c
b/src/spectral/fft.c
index
3f3a020
..
e37d2bf
100644
(file)
--- a/
src/spectral/fft.c
+++ b/
src/spectral/fft.c
@@
-230,9
+230,13
@@
void aubio_fft_rdo(aubio_fft_t * s, cvec_t * spectrum, fvec_t * output) {
void aubio_fft_do_complex(aubio_fft_t * s, fvec_t * input, fvec_t * compspec) {
uint_t i;
+#ifndef HAVE_MEMCPY_HACKS
for (i=0; i < s->winsize; i++) {
s->in[i] = input->data[i];
}
+#else
+ memcpy(s->in, input->data, s->winsize * sizeof(smpl_t));
+#endif /* HAVE_MEMCPY_HACKS */
#ifdef HAVE_FFTW3 // using FFTW3
fftw_execute(s->pfw);
#ifdef HAVE_COMPLEX_H