Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8282942

[vector] Trivial code style updates

XMLWordPrintable

      E.g. in ByteVector.java, some spaces are required between for/if and '(':

          static ByteVector expandHelper(Vector<Byte> v, VectorMask<Byte> m) {
              VectorSpecies<Byte> vsp = m.vectorSpecies();
              ByteVector r = (ByteVector) vsp.zero();
              ByteVector vi = (ByteVector) v;
              if (m.allTrue()) {
                  return vi;
              }
              for(int i = 0,j = 0; i < vsp.length(); i++) {
                  if(m.laneIsSet(i)) {
                      r = r.withLane(i, vi.lane(j++));
                  }
              }
              return r;
          }

            xgong Xiaohong Gong
            xgong Xiaohong Gong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: