summary refs log tree commit diff
path: root/library/core/src/num
AgeCommit message (Expand)AuthorLines
2020-12-19Auto merge of #79473 - m-ou-se:clamp-in-core, r=m-ou-sebors-0/+70
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
2020-09-19Move NonZero* to its fileLzu Tao-176/+197
2020-09-19Add tracking issue number for int_bits_const.Mara Bos-2/+2
2020-09-19Use `T::BITS` instead of `size_of::<T> * 8`.Mara Bos-25/+9
2020-09-19Add example/test to <int types>::BITS.Mara Bos-6/+26
2020-09-19Add `BITS` associated constant to all integer types.Mara Bos-0/+8
2020-09-16Rollup merge of #76747 - GuillaumeGomez:more-missing-libcore-code-examples, r...Tyler Mandry-0/+30
2020-09-16Prefer asm! over llvm_asm! in coreLzu Tao-3/+17
2020-09-15Add missing code examples in libcoreGuillaume Gomez-0/+30
2020-09-08Capitalize safety commentsFlying-Toast-3/+3
2020-09-07Rollup merge of #76358 - Wilfred:patch-3, r=lcnrDylan DPC-2/+2
2020-09-05rename MaybeUninit slice methodsRalf Jung-43/+69
2020-09-04Minor grammar fix in doc comment for soft-deprecated methodsWilfred Hughes-2/+2
2020-09-02flt2dec: properly handle uninitialized memoryRalf Jung-143/+221
2020-08-27Use intra-doc links in `core::num::dec2flt`Camelid-4/+0
2020-08-24Rollup merge of #75825 - jrheard:patch-1, r=steveklabnikYuki Okushi-1/+1