furnace/extern/fftw/libbench2/caset.c
2022-05-31 03:24:29 -05:00

12 lines
217 B
C

/* not worth copyrighting */
#include "libbench2/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);
}
}