private static final int checkMaxLgArrLongs(Memory dstMem){
  int preBytes=CONST_PREAMBLE_LONGS << 3;
  long cap=dstMem.getCapacity();
  int maxLgArrLongs=Integer.numberOfTrailingZeros(floorPowerOf2((int)(cap - preBytes)) >>> 3);
  if (maxLgArrLongs < MIN_LG_ARR_LONGS) {
    throw new SketchesArgumentException("dstMem not large enough for minimum sized hash table: " + cap);
  }
  return maxLgArrLongs;
}

private static final int checkMaxLgArrLongs ( Memory dstMem ) { int preBytes = CONST_PREAMBLE_LONGS << 3 ; long cap = dstMem . getCapacity ( ) ; int maxLgArrLongs = Integer . numberOfTrailingZeros ( floorPowerOf2 ( ( int ) ( cap - preBytes ) ) > > > 3 ) ; if ( maxLgArrLongs < MIN_LG_ARR_LONGS ) { throw new SketchesArgumentException ( "dstMem not large enough for minimum sized hash table: " + cap ) ; } return maxLgArrLongs ; }
returns the correct maximum lgarrlongs given the capacity of the memory . checks that the capacity is large enough for the minimum sized hash table .
