Mercurial > hg > sv-dependency-builds
annotate src/fftw-3.3.3/libbench2/caset.c @ 17:59685d5285b1
Merge
author | Chris Cannam <chris.cannam@eecs.qmul.ac.uk> |
---|---|
date | Mon, 25 Mar 2013 12:24:36 +0000 |
parents | 37bf6b4a2645 |
children |
rev | line source |
---|---|
Chris@10 | 1 /* not worth copyrighting */ |
Chris@10 | 2 |
Chris@10 | 3 #include "bench.h" |
Chris@10 | 4 |
Chris@10 | 5 void caset(bench_complex *A, int n, bench_complex x) |
Chris@10 | 6 { |
Chris@10 | 7 int i; |
Chris@10 | 8 for (i = 0; i < n; ++i) { |
Chris@10 | 9 c_re(A[i]) = c_re(x); |
Chris@10 | 10 c_im(A[i]) = c_im(x); |
Chris@10 | 11 } |
Chris@10 | 12 } |