view src/fftw-3.3.3/libbench2/caset.c @ 131:cd8a866e0905

Debug build of Rubber Band Library
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 19 Oct 2016 17:32:56 +0100
parents 89f5e221ed7b
children
line wrap: on
line source
/* 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);
     }
}