Mercurial > hg > js-dsp-test
annotate fft/fftw/fftw-3.3.4/libbench2/caset.c @ 40:223f770b5341 kissfft-double tip
Try a double-precision kissfft
author | Chris Cannam |
---|---|
date | Wed, 07 Sep 2016 10:40:32 +0100 |
parents | 26056e866c29 |
children |
rev | line source |
---|---|
Chris@19 | 1 /* not worth copyrighting */ |
Chris@19 | 2 |
Chris@19 | 3 #include "bench.h" |
Chris@19 | 4 |
Chris@19 | 5 void caset(bench_complex *A, int n, bench_complex x) |
Chris@19 | 6 { |
Chris@19 | 7 int i; |
Chris@19 | 8 for (i = 0; i < n; ++i) { |
Chris@19 | 9 c_re(A[i]) = c_re(x); |
Chris@19 | 10 c_im(A[i]) = c_im(x); |
Chris@19 | 11 } |
Chris@19 | 12 } |