On 5/21/15 4:46 PM, deadalnix wrote:

Alternatively, with bsf on could do:

x << bsf(x) == 1 << [32|64]

Hm... bsf does work in your original code, I'm thinking you may have messed up bsf and bsr :)

x >> bsf(x) == 1

Which makes a LOT more sense (I tested and it works).

Don't ask me why I knew bsr vs. bsf...

-Steve

Reply via email to