about summary refs log tree commit diff
path: root/library/std/src/sys/unix/process/process_unix.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-10-03 10:34:57 +0000
committerbors <bors@rust-lang.org>2021-10-03 10:34:57 +0000
commit4479cb82e52989480a238e0cf8c67e04b655b36d (patch)
tree280d3ac19e09d225644b96007748a417eacebd25 /library/std/src/sys/unix/process/process_unix.rs
parentc24c9067eec3aec8dd2013d24f6cd0dff3ecec4c (diff)
parent1139ee32aa803401198c02d5541accbf3fddfc94 (diff)
downloadrust-4479cb82e52989480a238e0cf8c67e04b655b36d.tar.gz
rust-4479cb82e52989480a238e0cf8c67e04b655b36d.zip
Auto merge of #89459 - tspiteri:idiv-overflow-bitand, r=kennytm
Use bitand when checking for signed integer division overflow

For `self == Self::MIN && rhs == -1`, LLVM does not realize that this is the same check made by `self / rhs`, so the code generated may have some unnecessary duplication. For `(self == Self::MIN) & (rhs == -1)`, LLVM realizes it is the same check.
Diffstat (limited to 'library/std/src/sys/unix/process/process_unix.rs')
0 files changed, 0 insertions, 0 deletions