rust/library/core/src/num
Pietro Albini 9fb66969e3
replace | with || in {unsigned_int}::borrowing_sub
Using short-circuiting operators makes it easier to perform some kinds
of source code analysis, like MC/DC code coverage (a requirement in
safety-critical environments). The optimized x86_64 assembly is the same
between the old and new versions:

```
mov eax, edi
add dl, -1
sbb eax, esi
setb dl
ret
```
2021-10-27 17:00:46 +02:00
..
dec2flt Use if-let guards in the codebase 2021-08-25 20:24:35 +02:00
flt2dec Changed dec2flt to use the Eisel-Lemire algorithm. 2021-07-17 00:30:34 -05:00
shells Convert the rest of the standard library primitives to intra-doc links 2021-02-25 20:32:49 -05:00
bignum.rs [clippy] remove redundant field names 2021-05-02 20:24:17 -04:00
diy_float.rs Fix assert in diy_float 2021-07-27 16:02:35 -04:00
error.rs Make more From impls const 2021-10-18 19:19:28 +09:00
f32.rs Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc 2021-10-20 04:35:10 +09:00
f64.rs Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc 2021-10-20 04:35:10 +09:00
fmt.rs Revert "Auto merge of #89709 - clemenswasser:apply_clippy_suggestions_2, r=petrochenkov" 2021-10-15 11:28:23 +02:00
int_log10.rs Add #[inline] to int log10 functions. 2021-10-12 15:21:14 +02:00
int_macros.rs Rollup merge of #88624 - kellerkindt:master, r=JohnTitor 2021-10-22 19:42:42 +09:00
mod.rs Add #[must_use] to is_condition tests 2021-10-09 21:27:13 -04:00
nonzero.rs Make From impls of NonZero integer const. 2021-10-20 12:04:58 +09:00
saturating.rs Rollup merge of #88624 - kellerkindt:master, r=JohnTitor 2021-10-22 19:42:42 +09:00
uint_macros.rs replace | with || in {unsigned_int}::borrowing_sub 2021-10-27 17:00:46 +02:00
wrapping.rs Rollup merge of #89753 - jkugelman:must-use-from_value-conversions, r=joshtriplett 2021-10-11 14:11:45 +02:00