3 ms·I like (v&(v-1))==0 (is v an exact power of 2?).by not2b 6y agoI like (v&(v-1))==0 (is v an exact power of 2?).