Heh, surprising. Rust's number types have ".trailing_zeros()", but not ". trailing_ones()". Wonder if it's because of a limitation in Assembly. Would be a nice method to have. Not just for symmetry, got a concrete use for it too.
Replying to @DPC_22
In the flat-tree crate we count trailing ones to calculate the depth of a node in the trew. Useful when doing any bin number stuff.
4:49 AM - 23 Oct 2018
0 replies
0 retweets
1 like
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.