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

Comparing jsr166/src/extra166y/AbstractParallelAnyArray.java (file contents):
Revision 1.1 by dl, Tue Jan 6 14:30:57 2009 UTC vs.
Revision 1.5 by jsr166, Fri Oct 22 05:18:30 2010 UTC

# Line 86 | Line 86 | public abstract class AbstractParallelAn
86       */
87      public int anyIndex() {
88          if (!hasFilter())
89 <            return (origin < fence)? origin : -1;
89 >            return (origin < fence) ? origin : -1;
90          AtomicInteger result = new AtomicInteger(-1);
91          PAS.FJSelectAny f = new PAS.FJSelectAny
92              (this, origin, fence, null, result);
# Line 118 | Line 118 | public abstract class AbstractParallelAn
118       */
119      final int getThreshold() {
120          int t = threshold;
121 <        if (t == 0)
121 >        if (t == 0)
122              t = computeThreshold();
123          return t;
124      }
# Line 2383 | Line 2383 | public abstract class AbstractParallelAn
2383          }
2384  
2385          public ParallelDoubleArrayWithDoubleMapping withMapping
2386 <            (ObjectToDouble<? super U> op){
2386 >            (ObjectToDouble<? super U> op) {
2387              return new DUDMPap(ex, origin, fence, array,
2388                                 CommonOps.compoundOp(this.op, op));
2389          }
# Line 4893 | Line 4893 | public abstract class AbstractParallelAn
4893          }
4894  
4895          public ParallelDoubleArrayWithLongMapping withMapping(DoubleToLong op) {
4896 <            return new DFLCPap (ex, origin, fence, array, selector,
4897 <                                compoundIndexedOp(this.op, op));
4896 >            return new DFLCPap(ex, origin, fence, array, selector,
4897 >                               compoundIndexedOp(this.op, op));
4898          }
4899  
4900          public <U> ParallelDoubleArrayWithMapping< U> withMapping
# Line 5131 | Line 5131 | public abstract class AbstractParallelAn
5131          }
5132  
5133          public ParallelDoubleArrayWithLongMapping withMapping(DoubleToLong op) {
5134 <            return new DRLCPap (ex, origin, fence, array, selector,
5135 <                                compoundIndexedOp(this.op, op));
5134 >            return new DRLCPap(ex, origin, fence, array, selector,
5135 >                               compoundIndexedOp(this.op, op));
5136          }
5137  
5138          public <U> ParallelDoubleArrayWithMapping< U> withMapping

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines