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

Comparing jsr166/src/loops/LoopHelpers.java (file contents):
Revision 1.4 by jsr166, Fri Jan 18 04:23:28 2013 UTC vs.
Revision 1.7 by jsr166, Sat Feb 16 21:37:44 2013 UTC

# Line 1 | Line 1
1 < /**
2 < * Misc utilities in JSR166 performance tests
1 > /*
2 > * Written by Doug Lea with assistance from members of JCP JSR-166
3 > * Expert Group and released to the public domain, as explained at
4 > * http://creativecommons.org/publicdomain/zero/1.0/
5   */
6  
7   import java.util.concurrent.*;
8   import java.util.concurrent.atomic.*;
9  
10 + /**
11 + * Misc utilities in JSR166 performance tests
12 + */
13   class LoopHelpers {
14  
15      static final SimpleRandom staticRNG = new SimpleRandom();
# Line 32 | Line 37 | class LoopHelpers {
37      }
38  
39      /**
40 <     *  Computes a linear congruential random number a random number
41 <     *  of times.
40 >     * Computes a linear congruential random number a random number
41 >     * of times.
42       */
43      public static int compute2(int x) {
44          int loops = (x >>> 4) & 7;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines