highestOneBit 获取一个int类型的二进制取整 public static int highestOneBit(int i) { // HD, Figure 3-1 i |= (i >> 1); i |= (i >> 2)