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

Comparing jsr166/src/extra166y/PAS.java (file contents):
Revision 1.14 by jsr166, Tue Mar 15 19:47:02 2011 UTC vs.
Revision 1.16 by jsr166, Tue Feb 21 01:54:03 2012 UTC

# Line 676 | Line 676 | class PAS {
676              }
677          }
678  
679 <        void  atLeaf(int l, int h) {
679 >        void atLeaf(int l, int h) {
680              if (pap.hasFilter())
681                  filteredAtLeaf(l, h);
682              else {
# Line 689 | Line 689 | class PAS {
689              }
690          }
691  
692 <        void  filteredAtLeaf(int l, int h) {
692 >        void filteredAtLeaf(int l, int h) {
693              for (int i = l; i < h; ++i) {
694                  if (pap.isSelected(i)) {
695                      Object x = pap.oget(i);
# Line 772 | Line 772 | class PAS {
772              }
773          }
774  
775 <        void  filteredAtLeaf(int l, int h) {
775 >        void filteredAtLeaf(int l, int h) {
776              for (int i = l; i < h; ++i) {
777                  if (pap.isSelected(i)) {
778                      double x = pap.dget(i);
# Line 843 | Line 843 | class PAS {
843              }
844          }
845  
846 <        void  atLeaf(int l, int h) {
846 >        void atLeaf(int l, int h) {
847              if (pap.hasFilter())
848                  filteredAtLeaf(l, h);
849              else {
# Line 857 | Line 857 | class PAS {
857              }
858          }
859  
860 <        void  filteredAtLeaf(int l, int h) {
860 >        void filteredAtLeaf(int l, int h) {
861              for (int i = l; i < h; ++i) {
862                  if (pap.isSelected(i)) {
863                      long x = pap.lget(i);
# Line 1574 | Line 1574 | class PAS {
1574          }
1575  
1576          /**
1577 <         * Return new array holding all elements.
1577 >         * Returns new array holding all elements.
1578           */
1579          Object[] uniqueObjects(int size) {
1580              Object[] src = pap.ogetArray();
# Line 1887 | Line 1887 | class PAS {
1887      }
1888  
1889      /**
1890 <     * Perform merging for FJSorter. If big enough, splits Left
1890 >     * Performs merging for FJSorter. If big enough, splits Left
1891       * partition in half; finds the greatest point in Right partition
1892       * less than the beginning of the second half of Left via binary
1893       * search; and then, in parallel, merges left half of Left with

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines