summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2023-11-01 20:37:45 -0700
committerAlexei Starovoitov <ast@kernel.org>2023-11-09 18:58:39 -0800
commit93f7378734b595fb61e89b802002fb7e3a1267d2 (patch)
tree4b91f51e3eb45a4ef49478481e261ed6d9529a1d /scripts/generate_rust_analyzer.py
parentf4c7e887324f5776eef6e6e47a90e0ac8058a7a8 (diff)
bpf: derive smin/smax from umin/max bounds
Add smin/smax derivation from appropriate umin/umax values. Previously the logic was surprisingly asymmetric, trying to derive umin/umax from smin/smax (if possible), but not trying to do the same in the other direction. A simple addition to __reg64_deduce_bounds() fixes this. Added also generic comment about u64/s64 ranges and their relationship. Hopefully that helps readers to understand all the bounds deductions a bit better. Acked-by: Eduard Zingerman <eddyz87@gmail.com> Acked-by: Shung-Hsi Yu <shung-hsi.yu@suse.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/r/20231102033759.2541186-4-andrii@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions