~diresu/blender/blender-command-port

« back to all changes in this revision

Viewing changes to extern/fftw/libbench2/caset.c

  • Committer: theeth
  • Date: 2008-10-14 16:52:04 UTC
  • Revision ID: vcs-imports@canonical.com-20081014165204-r32w2gm6s0osvdhn
copy back trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* not worth copyrighting */
 
2
 
 
3
#include "bench.h"
 
4
 
 
5
void caset(bench_complex *A, int n, bench_complex x)
 
6
{
 
7
     int i;
 
8
     for (i = 0; i < n; ++i) {
 
9
          c_re(A[i]) = c_re(x);
 
10
          c_im(A[i]) = c_im(x);
 
11
     }
 
12
}