1     void broadcastShared(int window, Blackhole bh) {
 2         $type$[] as = fa.apply(size);
 3         $type$[] rs = fr.apply(size);
 4 
 5         for (int ic = 0; ic < INVOC_COUNT; ic++) {
 6             for (int i = 0; i < as.length; i += window) {
 7                 int idx = i;
 8                 for (int j = 0; j < window; j++) {
 9                     rs[j] = as[idx];
10                 }
11             }
12         }
13 
14         bh.consume(rs);
15     }
16 
17     @Benchmark
18     public void broadcast064(Blackhole bh) {
19         int window = 64 / $Wideboxtype$.SIZE;
20         broadcastShared(window, bh);
21     }
22 
23     @Benchmark
24     public void broadcast128(Blackhole bh) {
25         int window = 128 / $Wideboxtype$.SIZE;
26         broadcastShared(window, bh);
27     }
28 
29     @Benchmark
30     public void broadcast256(Blackhole bh) {
31         int window = 256 / $Wideboxtype$.SIZE;
32         broadcastShared(window, bh);
33     }
34 
35     @Benchmark
36     public void broadcast512(Blackhole bh) {
37         int window = 512 / $Wideboxtype$.SIZE;
38         broadcastShared(window, bh);
39     }