public static int scan(long v){
  return 63 - Long.numberOfLeadingZeros(v);
}

public static int scan ( long v ) { return 63 - Long . numberOfLeadingZeros ( v ) ; }
utility method with defined return value for 0 .
