summary refs log tree commit diff
path: root/library/core/src/num
AgeCommit message (Expand)AuthorLines
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-13Use unsigned_abs throughout repositoryJacob Pratt-1/+1
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
2020-11-05Fix automatic_links warningsGuillaume Gomez-1/+1
2020-11-04Expand explanation of reverse_bitsKornel-2/+6
2020-11-02Rollup merge of #78627 - est31:total_cmp_no_superset, r=m-ou-seYuki Okushi-0/+8
2020-11-01Point out that total_cmp is no strict superset of partial comparisonest31-0/+8
2020-10-28Inline NonZeroN::from(n)Peter Todd-0/+1
2020-10-26Apply suggested changesEthan Brierley-13/+25
2020-10-26asci -> ASCIIEthan Brierley-1/+1
2020-10-26Small rewordEthan Brierley-1/+1
2020-10-26Fix spelling erorEthan Brierley-1/+1
2020-10-21switch allow_internal_unstable const fns to rustc_allow_const_fn_unstableFlorian Warzecha-4/+8
2020-10-06remove OnlySign in favour of InvalidDigitEthan Brierley-9/+7
2020-10-06Remove incorrect pluralEthan Brierley-2/+2
2020-10-06Bring char along with InvalidDigitEthan Brierley-5/+5
2020-10-06Fill in things needed to stabilize int_error_matchingEthan Brierley-24/+21
2020-09-20Implement as_ne_bytes for floats and integersHoe Hao Cheng-0/+128
2020-09-19Remove outdated ignored tidy commentLzu Tao-2/+0
2020-09-19Move (u)int_impl macros to their own filesLzu Tao-4158/+4161
2020-09-19Move dummy integer modules (like core::u32) to shells dirLzu Tao-0/+0
2020-09-19Move error structs to new modLzu Tao-162/+174
2020-09-19Move Wrapping<T> definition to wrapping modLzu Tao-75/+82