mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
e3ecd4530b
num: Implement `uint_gather_scatter_bits` feature for unsigned integers Feature gate: `#![feature(uint_gather_scatter_bits)]` Tracking issue: https://github.com/rust-lang/rust/issues/149069 Accepted ACP: https://github.com/rust-lang/libs-team/issues/695#issuecomment-3549284861 Implement `gather_bits`, `scatter_bits` functions on unsigned integers Add tests to coretests This implementation is a small improvement over the plain naive form (see the [solution sketch](https://github.com/rust-lang/libs-team/issues/695)). We only check the set bits in the mask instead of iterating over every bit.