Mercurial > hg > sv-dependency-builds
annotate src/fftw-3.3.5/libbench2/caset.c @ 49:3ab5a40c4e3b
Add Capnp and KJ builds for OSX
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 25 Oct 2016 14:48:23 +0100 |
parents | 2cd0e3b3e1fd |
children |
rev | line source |
---|---|
Chris@42 | 1 /* not worth copyrighting */ |
Chris@42 | 2 |
Chris@42 | 3 #include "bench.h" |
Chris@42 | 4 |
Chris@42 | 5 void caset(bench_complex *A, int n, bench_complex x) |
Chris@42 | 6 { |
Chris@42 | 7 int i; |
Chris@42 | 8 for (i = 0; i < n; ++i) { |
Chris@42 | 9 c_re(A[i]) = c_re(x); |
Chris@42 | 10 c_im(A[i]) = c_im(x); |
Chris@42 | 11 } |
Chris@42 | 12 } |