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