判断n是否为2的幂 _Bool is_power_of_2(unsigned int n) { if (n == 0) { return false; } return (n & (n-1)) == 0; }