summary refs log tree commit diff
path: root/library/core/src/num
AgeCommit message (Expand)AuthorLines
2021-10-04Rollup merge of #89184 - joshtriplett:master, r=estebankJubilee-26/+26
2021-09-02Rollup merge of #88582 - jhpratt:int_roundings, r=joshtriplettMara Bos-0/+271
2021-09-02Implement #88581Jacob Pratt-0/+271
2021-08-31Rollup merge of #85017 - clarfonthey:carrying_widening, r=m-ou-seMara Bos-0/+201
2021-08-28Auto merge of #87921 - kellerkindt:master, r=kennytmbors-0/+1044
2021-08-28Unimpl Shl{Assign} for signed Saturating types until the correct impl is clearMichael Watzko-59/+63
2021-08-28Fix mentions of wrapping operationsMichael Watzko-2/+2
2021-08-28Use wrapping shift for unsigned typesMichael Watzko-2/+2
2021-08-26Add carrying_add, borrowing_sub, widening_mul, carrying_mul methods to integersltdk-0/+201
2021-08-25Use if-let guards in the codebaseLéo Lanteri Thauvin-7/+2
2021-08-22Fix typos “a”→“an”Frank Steffahn-1/+1
2021-08-19Simplify saturating_divMichael Watzko-8/+3
2021-08-19Simplify Div impl for Saturating by using saturating_divMichael Watzko-37/+31
2021-08-19Add saturating_div to unsigned integer typesMichael Watzko-0/+30
2021-08-19Add doctests to and fix saturating_div for signed integer typesMichael Watzko-9/+22
2021-08-19Add and use saturating_div instead of impl inside SaturatingMichael Watzko-10/+27
2021-08-19Saturate negative divisionMichael Watzko-13/+46
2021-08-12Implement Neg only for signed Saturating typesMichael Watzko-11/+11
2021-08-12Add naive remainder impl to SaturatingMichael Watzko-1/+22
2021-08-12Add naive shift implementation to SaturatingMichael Watzko-1/+158
2021-08-12Replace doc test with doc macro callMichael Watzko-1/+1
2021-08-12Like in Wrapping use shift in doctestMichael Watzko-2/+2
2021-08-12Remove mentioning of modular arithmeticMichael Watzko-3/+2
2021-08-12Make all the impls for Staturating unstable saturating_int_implMichael Watzko-33/+33
2021-08-10Fix missed testsMichael Watzko-10/+7
2021-08-10RustfmtMichael Watzko-1/+0
2021-08-10Remove unused macrosMichael Watzko-33/+0
2021-08-10Add Saturating type (based on Wrapping type)Michael Watzko-0/+818
2021-08-04Auto merge of #87150 - rusticstuff:simplify_wrapping_neg, r=m-ou-sebors-4/+4
2021-08-03Use .contains instead of manual reimplementation. frogtd-1/+1
2021-07-30Rollup merge of #87522 - frogtd:patch-1, r=yaahcYuki Okushi-1/+1
2021-07-29Fix may not to appropriate might not or must notAli Malik-4/+4
2021-07-28Rollup merge of #87500 - Smittyvb:min-max-docs, r=kennytmYuki Okushi-12/+15
2021-07-27remove unneeded stringifySmitty-3/+3
2021-07-27Stabilize `const_fn_transmute`Jacob Pratt-4/+4
2021-07-27Fix assert in diy_floatfrogtd-1/+1
2021-07-26Document math behind MIN/MAX consts on integersSmitty-12/+15
2021-07-17Auto merge of #86761 - Alexhuszagh:master, r=estebankbors-2396/+2146
2021-07-17Changed dec2flt to use the Eisel-Lemire algorithm.Alex Huszagh-2396/+2146
2021-07-15Make wrapping_neg() use wrapping_sub(), #[inline(always)]Hans Kratz-4/+4
2021-07-07special case for integer log10Trevor Spiteri-3/+144
2021-07-07Rollup merge of #80918 - yoshuawuyts:int-log2, r=m-ou-seYuki Okushi-0/+376
2021-07-04Auto merge of #86048 - nbdd0121:no_floating_point, r=Amanieubors-101/+115
2021-07-02core: add unstable `no_fp_fmt_parse` to disable float fmt/parse codeGary Guo-0/+5
2021-06-25Add Integer::{log,log2,log10} variantsYoshua Wuyts-0/+376
2021-06-23Use HTTPS links where possibleSmitty-4/+4
2021-06-22Auto merge of #84910 - eopb:stabilize_int_error_matching, r=yaahcbors-21/+9
2021-06-22postpone stabilizaton by one releaseEthan Brierley-8/+8
2021-06-17Fix comment about rustc_inherit_overflow_checks in abs().Mara Bos-3/+3
2021-06-14stabilize `int_error_matching`Ethan Brierley-21/+9