Re: [PATCH v2 03/12] rust: num: add Bounded::shr_exact
"Danilo Krummrich" <[email protected]>
| Newsgroups | org.kernel.vger.linux-doc,dev.linux.lists.nova-gpu,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-kernel,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <[email protected]> |
On Mon Aug 10, 2026 at 3:55 PM CEST, Eliot Courtney wrote: > Add `shr_exact` in the vein of `try_shrink` which shifts a bounded right > only if it loses no set bits. This is useful for getting a shifted down > integer while simultaneously checking that it's aligned. > > Signed-off-by: Eliot Courtney <[email protected]> > Acked-by: Alexandre Courbot <[email protected]> Reviewed-by: Danilo Krummrich <[email protected]>