summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorEliot Courtney <ecourtney@nvidia.com>2026-08-10 22:55:25 +0900
committerMiguel Ojeda <ojeda@kernel.org>2026-08-11 11:36:39 +0200
commit8fe5e5f62bdb9660999449a4b5eaebcc37d7f842 (patch)
treec1f95fa342dc1769f21236895a883d4df29d6987 /tools/perf/scripts/python
parent223aa25aee82e188ddf043a8703b16e5fdfc37d8 (diff)
rust: num: add Bounded::shr_exact
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 <ecourtney@nvidia.com> Acked-by: Alexandre Courbot <acourbot@nvidia.com> Reviewed-by: Danilo Krummrich <dakr@kernel.org> Link: https://patch.msgid.link/20260810-pramin-split-v2-3-65a00b3c7309@nvidia.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions