Lol -- "Like cttz, but extra-unsafe (...)" https://doc.rust-lang.org/std/intrinsics/fn.cttz_nonzero.html …
Hmm, if I'm reading that correctly it would return a different result. E.g. 0b0101 Result: 3 Expected: 1
-
-
Ah, you're right. Sorry. So it's back to negation and bsf/tzcnt
-
Wrote an RFC covering everything we've talked about! :D https://internals.rust-lang.org/t/pre-rfc-leading-ones-trailing-ones/8762 …
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
how about bsr for your "trailing ones" problem?