static bool bitClear(int x, int bit) { ret (x & (1 << bit)) == 0; }