aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/moves/array.c
blob: faa1d96be134ed4d08cc848ea309234232e39d11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
void incr_double_array(double *t) {
  double x0 = 1.0;
  double t0 = t[0];
  double x1 = 1.0;
  double t1 = t[1];
  double x2 = 1.0;
  double t2 = t[2];
  double x3 = 1.0;
  double t3 = t[3];
  t0 = t0 + x0;
  t1 = t1 + x1;
  t2 = t2 + x2;
  t3 = t3 + x3;
  t[0] = t0;
  t[1] = t1;
  t[2] = t2;
  t[3] = t3;
}