x = ((x >= 0) || (-x == x)) ? (x >> 10) : (-((-x) >> 10));