Mercurial > hg > sv-dependency-builds
annotate src/fftw-3.3.3/libbench2/caset.c @ 62:0994c39f1e94
Cap'n Proto v0.6 + build for OSX
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Mon, 22 May 2017 10:01:37 +0100 |
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 } |