You're replying to a comment by Phil.

Phil Permalink
January 10, 2017, 20:51

Still looking for efficient ways to:
1. Count how many bits set to 1
2. Find the left-most 1.

I recently learned this clever test for whether x is a power of 2:
(x & (x-1))==0

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "halflife3_143": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.