function bitIsSet(x, n) { return (x & (1<