summary refs log tree commit diff
path: root/library/core/src/num
AgeCommit message (Expand)AuthorLines
2024-02-13Revert unsound libcore changes of #119911Oli Scherer-384/+149
2024-01-27Switch `NonZero` alias direction.Markus Reiter-19/+41
2024-01-25Auto merge of #119911 - NCGThompson:is-statically-known, r=oli-obkbors-149/+384
2024-01-24Rollup merge of #118326 - WaffleLapkin:nz_count_ones, r=scottmcmLeón Orell Valerian Liehr-0/+37
2024-01-24Add `NonZero*::count_ones`Maybe Waffle-0/+37
2024-01-23Auto merge of #120283 - fmease:rollup-rk0f6r5, r=fmeasebors-8/+101
2024-01-23Rollup merge of #120160 - reitermarkus:nonzero-traits, r=dtolnayLeón Orell Valerian Liehr-8/+101
2024-01-23Rollup merge of #120244 - reitermarkus:nonzero-self, r=dtolnayLeón Orell Valerian Liehr-43/+48
2024-01-23Further Implement Power of Two OptimizationNicholas Thompson-146/+324
2024-01-23Auto merge of #119892 - joboet:libs_use_assert_unchecked, r=Nilstrieb,cuviperbors-2/+3
2024-01-22Use `Self` in `NonZero*` implementations.Markus Reiter-43/+48
2024-01-22Rollup merge of #119726 - NCGThompson:div-overflow-doc, r=NilstriebMatthias Krüger-36/+34
2024-01-21Manually implement derived `NonZero` traits.Markus Reiter-8/+101
2024-01-21Rollup merge of #116090 - rmehri01:strict_integer_ops, r=m-ou-seNadrieril-15/+995
2024-01-19Assign tracking issue number for feature(nonzero_from_mut)SOFe-2/+2
2024-01-19Added assert_unsafe_precondition! check for NonZeroXxx::from_mut_uncheckedSOFe-13/+20
2024-01-19Added NonZeroXxx::from_mut(_unchecked)?SOFe-0/+26
2024-01-19Clarify Panicking Behavior in Integer Division DocsNicholas Thompson-19/+8
2024-01-19Make `saturating_div` Docs Consistent with OthersNicholas Thompson-10/+8
2024-01-19Adjust Attributes of Integer Division MethodsNicholas Thompson-7/+18
2024-01-19Add new intrinsic `is_constant` and optimize `pow`Catherine Flores-34/+91
2024-01-19Rollup merge of #118665 - dtolnay:signedness, r=NilstriebMatthias Krüger-1265/+1211
2024-01-15Revert unrelated changes from PR 119990David Tolnay-3/+3
2024-01-15Add private `NonZero<T>` type alias.Markus Reiter-12/+79
2024-01-14Unbreak tidy's feature parserDavid Tolnay-52/+31
2024-01-14Move BITS into omnibus impl blockDavid Tolnay-37/+14
2024-01-14Move signed MIN and MAX into signedness_dependent_methodsDavid Tolnay-52/+35
2024-01-14Move unsigned MIN and MAX into signedness_dependent_methodsDavid Tolnay-43/+26
2024-01-14Move is_power_of_two into unsigned part of signedness_dependent_methodsDavid Tolnay-40/+28
2024-01-14Move nonzero_unsigned_signed_operations methods into the omnibus impl blockDavid Tolnay-225/+201
2024-01-14Work around rustfmt doc attribute indentation bugDavid Tolnay-0/+1
2024-01-14Unindent nonzero_integer_signedness_dependent_methods macro bodyDavid Tolnay-589/+589
2024-01-14Move signedness dependent methods into the omnibus impl blockDavid Tolnay-35/+30
2024-01-14Move Neg impl into the macro that generates Div and RemDavid Tolnay-20/+20
2024-01-14Move leading_zeros and trailing_zeros methods into nonzero_integer macroDavid Tolnay-71/+75
2024-01-14Unindent nonzero_integer_impl_div_rem macro bodyDavid Tolnay-21/+21
2024-01-14Move impl Div and Rem into nonzero_integer macroDavid Tolnay-14/+9
2024-01-14Move 'impl FromStr for NonZero' into nonzero_integer macroDavid Tolnay-9/+2
2024-01-14Format nonzero_integer macro calls same way we do the primitive int implsDavid Tolnay-20/+59
2024-01-14Unindent nonzero_integer macro bodyDavid Tolnay-139/+139
2024-01-14Define only a single NonZero type per macro callDavid Tolnay-6/+39
2024-01-14Move nonzero_integers macro call to bottom of moduleDavid Tolnay-15/+15
2024-01-13libs: use `assert_unchecked` instead of intrinsicjoboet-2/+3
2024-01-06Add assume into `NonZeroIntX::get`AngelicosPhosphoros-4/+18
2023-11-28reword panic comments and add spaces to unlikely branchesRyan Mehri-60/+64
2023-11-28Rollup merge of #118397 - Zalathar:nonzero, r=WaffleLapkinMatthias Krüger-2/+2
2023-11-28Rollup merge of #118236 - ksw2000:update_mod_comment, r=cuviperMatthias Krüger-3/+3
2023-11-28Fix comments for unsigned non-zero `checked_add`, `saturating_add`Zalathar-2/+2
2023-11-26Improve some comments for non-zero opsMaybe Waffle-14/+44
2023-11-25Convert many `assert_unsafe_precondition` to `debug_assert_nounwind`Gary Guo-4/+4