sounds like you get to write something! @burntsushi5 probably knows better
-
This Tweet is unavailable.
-
This Tweet is unavailable.
-
This Tweet is unavailable.
-
-
I think probably the only guide at the moment are the std::arch module docs: https://doc.rust-lang.org/std/arch/index.html … --- You can see examples in the ecosystem too. Both the regex and memchr crates use std::arch.
1 reply 0 retweets 2 likes
Replying to @burntsushi5 @myrrlyn
It is possible that if `n.leading_zeros()` or `n.trailing_zeros()` fits your use case, and you are willing to compile with `RUSTFLAGS="-C target-cpu=native"` (or similar), then you'll get the appropriate `popcnt` instruction. But runtime detection isn't used AIUI.
9:29 AM - 5 Dec 2018
0 replies
0 retweets
2 likes
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.