ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/ScalarLongSort.java
(Generate patch)

Comparing jsr166/src/test/loops/ScalarLongSort.java (file contents):
Revision 1.9 by dl, Fri Aug 19 11:25:04 2011 UTC vs.
Revision 1.13 by jsr166, Thu Jan 15 18:34:19 2015 UTC

# Line 4 | Line 4
4   * http://creativecommons.org/publicdomain/zero/1.0/
5   */
6  
7 import java.util.concurrent.*;
7   import java.util.*;
8 + import java.util.concurrent.*;
9  
10   class ScalarLongSort {
11      static final long NPS = (1000L * 1000 * 1000);
# Line 13 | Line 13 | class ScalarLongSort {
13      static int THRESHOLD = -1;
14      static final boolean warmup = true;
15  
16 <    public static void main (String[] args) throws Exception {
16 >    public static void main(String[] args) throws Exception {
17          int procs = 0;
18          int n = 1 << 22;
19          int reps = 20;
# Line 78 | Line 78 | class ScalarLongSort {
78          }
79          System.out.println(pool);
80  
81
81          pool.shutdown();
82      }
83  
# Line 148 | Line 147 | class ScalarLongSort {
147           * and finding index of right closest to split point.
148           * Uses left-spine decomposition to generate all
149           * merge tasks before bottomming out at base case.
151         *
150           */
151          public final void compute() {
152              Merger rights = null;
# Line 209 | Line 207 | class ScalarLongSort {
207  
208      }
209  
210 <    static void checkSorted (long[] a) {
210 >    static void checkSorted(long[] a) {
211          int n = a.length;
212          for (int i = 0; i < n - 1; i++) {
213              if (a[i] > a[i+1]) {
# Line 247 | Line 245 | class ScalarLongSort {
245              }
246          }
247      }
250
251
248   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines