Tuesday, April 5, 2011

Test ith bit

(bits & 1<<i)>>i
gives 1 if set, and 0 otherwise.