RT @CompSciFact
C code to test whether an unsigned integer u > 0 is a power of 2:

(u & (u-1)) == 0

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.