summary refs log tree commit diff
path: root/library/core/src/num
AgeCommit message (Expand)AuthorLines
2021-03-02Rollup merge of #80189 - jyn514:convert-primitives, r=poliorceticsYuki Okushi-45/+43
2021-03-01Change twice used large const table to staticDavid Tolnay-1/+1
2021-02-25Convert the rest of the standard library primitives to intra-doc linksJoshua Nelson-45/+43
2021-02-25Rollup merge of #82078 - lopopolo:char-u8-const-fn, r=m-ou-seDylan DPC-4/+7
2021-02-23Make ascii_change_case_unchecked constRyan Lopopolo-1/+1
2021-02-23Update since attributes for new const_ascii_methods_on_intrinsics to 1.52.0Ryan Lopopolo-3/+3
2021-02-23Make char methods constYenForYang-3/+6
2021-02-23Fix linkJoshua Nelson-1/+1
2021-02-23Convert core/num/mod.rs to intra-doc linksJoshua Nelson-41/+33
2021-02-23Rollup merge of #81837 - gilescope:to_ascii_speedups, r=dtolnayDylan DPC-2/+11
2021-02-20Auto merge of #81427 - klensy:eat-digits, r=m-ou-sebors-5/+2
2021-02-19simplify eat_digitsklensy-5/+2
2021-02-14Move const def nearer usage.Giles Cope-3/+3
2021-02-12Slightly more explicitGiles Cope-1/+9
2021-02-10Rollup merge of #81904 - jhpratt:const_int_fn-stabilization, r=jyn514Yuki Okushi-28/+28
2021-02-08Bump stabilization version for const int methodsJacob Pratt-28/+28
2021-02-08Unify way to flip 6th bit. (Same assembly generated)Giles Cope-2/+3
2021-02-08Auto merge of #80962 - jhpratt:const_int_fn-stabilization, r=dtolnaybors-28/+28
2021-02-03Revert stabilizing integer::BITS.Mara Bos-2/+4
2021-01-31stabilize int_bits_constAshley Mannix-4/+2
2021-01-30Rollup merge of #80959 - jhpratt:unsigned_abs-stabilization, r=m-ou-seYuki Okushi-3/+3
2021-01-23Fix small typoDavid-1/+1
2021-01-20Deprecate-in-future the constants superceded by RFC 2700bstrie-62/+207
2021-01-16Add NonZeroUn::is_power_of_twoScott McMurray-0/+40
2021-01-14Stabilize intrinsics as constJacob Pratt-4/+0
2021-01-13Use unsigned_abs throughout repositoryJacob Pratt-1/+1
2021-01-13Stabilize remaining integer methods as `const fn`Jacob Pratt-28/+32
2021-01-12Stabilize unsigned_absJacob Pratt-2/+2
2020-12-30Fix typos.Mara Bos-2/+2
2020-12-30Don't use doc_comment!{} hack in nonzero_leading_trailing_zeros!{}.Mara Bos-45/+41
2020-12-30Remove all doc_comment!{} hacks by using #[doc = expr] where needed.Mara Bos-4422/+3968
2020-12-27Auto merge of #79134 - ohadravid:nzint-div, r=dtolnaybors-1/+41
2020-12-27Bump nonzero_div feature to Rust 1.51David Tolnay-2/+2
2020-12-19Auto merge of #79473 - m-ou-se:clamp-in-core, r=m-ou-sebors-0/+70
2020-12-17Added `impl Rem<NonZeroU{0}> for u{0}` which cannot panicOhad Ravid-1/+13
2020-12-17Added `impl Div<NonZeroU{0}> for u{0}` which cannot panicOhad Ravid-1/+29
2020-12-17Add `popcount` and `popcnt` as doc aliases for `count_ones` methods.Simon Sapin-0/+6
2020-12-09Fix typo in `wrapping_shl` documentationPratyush Mishra-1/+1
2020-11-27Move {f32,f64}::clamp to core.Mara Bos-0/+70
2020-11-23Rollup merge of #76829 - tspiteri:const-int-pow, r=oli-obkJonas Schievink-14/+14
2020-11-23const_int_pow will be stabilized in 1.50.0, not in 1.49.0Trevor Spiteri-14/+14
2020-11-23stabilize const_int_powTrevor Spiteri-14/+14
2020-11-22Auto merge of #79319 - m-ou-se:rollup-d9n5viq, r=m-ou-sebors-0/+52
2020-11-22Add f{32,64}::is_subnormalltdk-0/+52
2020-11-19Bump bootstrap compiler versionJake Goulding-8/+4
2020-11-17add trailing_zeros and leading_zeros to non zero typesAndreas Jonson-0/+74
2020-11-09Rollup merge of #77640 - ethanboxx:int_error_matching_attempt_2, r=KodrAusDylan DPC-16/+23
2020-11-08Rollup merge of #78788 - jhpratt:isize-impl-fix, r=m-ou-seMara Bos-3/+3
2020-11-07Rollup merge of #78730 - kornelski:not-inverse, r=Dylan-DPCYuki Okushi-2/+6
2020-11-05Correct unsigned equivalent of isize to be usizeJacob Pratt-3/+3