private int findNextUnreservedRopReg(int startReg,int width){
  int reg;
  reg=reservedRopRegs.nextClearBit(startReg);
  while (true) {
    int i=1;
    while (i < width && !reservedRopRegs.get(reg + i)) {
      i++;
    }
    if (i == width) {
      return reg;
    }
    reg=reservedRopRegs.nextClearBit(reg + i);
  }
}

private int findNextUnreservedRopReg ( int startReg , int width ) { int reg ; reg = reservedRopRegs . nextClearBit ( startReg ) ; while ( true ) { int i = 1 ; while ( i < width && ! reservedRopRegs . get ( reg + i ) ) { i ++ ; } if ( i == width ) { return reg ; } reg = reservedRopRegs . nextClearBit ( reg + i ) ; } }
finds a range of unreserved rop registers .
