rust/library/core/src/num
Trevor Spiteri 4ec0377d6a for signed overflowing remainder, delay comparing lhs with MIN
Since the wrapped remainder is going to be 0 for all cases when the rhs is -1,
there is no need to divide in this case. Comparing the lhs with MIN is only done
for the overflow bool. In particular, this results in better code generation for
wrapping remainder, which discards the overflow bool completely.
2021-10-05 15:15:24 +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 postpone stabilizaton by one release 2021-06-22 10:20:56 +01:00
f32.rs Intra doc link-ify a reference to a function 2021-06-01 05:04:48 +02:00
f64.rs Intra doc link-ify a reference to a function 2021-06-01 05:04:48 +02:00
fmt.rs Move flt2dec::{Formatted, Part} to dedicated module 2021-06-06 02:54:51 +01:00
int_log10.rs Change return type for T::{log,log2,log10} to u32. The value is at 2021-09-05 17:09:21 +02:00
int_macros.rs for signed overflowing remainder, delay comparing lhs with MIN 2021-10-05 15:15:24 +02:00
mod.rs Rollup merge of #85017 - clarfonthey:carrying_widening, r=m-ou-se 2021-08-31 17:54:52 +02:00
nonzero.rs Mark unsafe NonZero*::unchecked_(add|mul) as const 2021-09-20 12:01:05 +02:00
saturating.rs Unimpl Shl{Assign} for signed Saturating types until the correct impl is clear 2021-08-28 13:39:09 +02:00
uint_macros.rs Rollup merge of #88780 - orlp:int-abs-diff, r=m-ou-se 2021-10-04 21:12:34 -07:00
wrapping.rs Wrapping<T> has the same layout and ABI as T 2021-09-13 12:39:45 -07:00