Mercurial > hg > sv-dependency-builds
diff src/fftw-3.3.5/libbench2/caset.c @ 42:2cd0e3b3e1fd
Current fftw source
author | Chris Cannam |
---|---|
date | Tue, 18 Oct 2016 13:40:26 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/fftw-3.3.5/libbench2/caset.c Tue Oct 18 13:40:26 2016 +0100 @@ -0,0 +1,12 @@ +/* not worth copyrighting */ + +#include "bench.h" + +void caset(bench_complex *A, int n, bench_complex x) +{ + int i; + for (i = 0; i < n; ++i) { + c_re(A[i]) = c_re(x); + c_im(A[i]) = c_im(x); + } +}