about summary refs log tree commit diff
path: root/library/core/src/num
AgeCommit message (Expand)AuthorLines
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
2023-11-24add `#[track_caller]` to improve panic locationsRyan Mehri-0/+26
2023-11-24implement strict_* operations for unsigned integer typesRyan Mehri-0/+394
2023-11-24implement strict_* operations for signed integer typesRyan Mehri-0/+556
2023-11-24correct grammarKashiwa-1/+1
2023-11-24Update comment for consistent context logic.Kashiwa-2/+2
2023-11-18Auto merge of #115412 - eswartz:docs/total_cmp-test-result-in-docs, r=scottmcmbors-6/+22
2023-11-01Rollup merge of #115626 - clarfonthey:unchecked-math, r=thomccMatthias Krüger-18/+43
2023-10-26Refactor some `char`, `u8` ascii functions to be branchlessokaneco-3/+6
2023-10-23fix typos in commentsGoodDaisy-1/+1
2023-10-14Auto merge of #116407 - Mark-Simulacrum:bootstrap-bump, r=onur-ozkanbors-88/+86
2023-10-13Clean up unchecked_math, separate out unchecked_shiftsltdk-18/+43
2023-10-08Bump to latest betaMark Rousskov-3/+1
2023-10-07Expose tests for {f32,f64}.total_cmp in docs, along with commentEd Swartz-6/+22
2023-10-05Auto merge of #114042 - liushuyu:ubuntu/i586-fpmath, r=workingjubileebors-1/+1
2023-10-05Auto merge of #104153 - tspiteri:doc-float-constants, r=workingjubileebors-4/+80
2023-10-03Bump version placeholdersMark Rousskov-86/+86
2023-09-29Auto merge of #116176 - FedericoStra:isqrt, r=dtolnaybors-0/+102
2023-09-28isqrt: `assume` that `isqrt` takes half as many bitsFederico Stra-0/+7
2023-09-28fixup! isqrt: fix stabilityFederico Stra-6/+6
2023-09-28isqrt: cite source and rename variables to match original C codeFederico Stra-11/+16
2023-09-28isqrt: fix stabilityFederico Stra-6/+9
2023-09-28fixup! isqrt: initial implementationFederico Stra-4/+4
2023-09-26isqrt: remove duplication by delegating to unsigned integersFederico Stra-40/+12
2023-09-22Extend fix to wrapping_div, wrapping_div_euclid and wrapping_rem_euclidJames Haywood-0/+12
2023-09-22Resolve rust-lang/rust#116063James Haywood-0/+4
2023-09-22isqrt: initial implementationFederico Stra-0/+115
2023-09-22checked_ilog: remove duplication by delegating to unsigned integersFederico Stra-22/+3
2023-09-22checked_ilog: add comments explaining the correctness of the 128 bit optimiza...Federico Stra-0/+16
2023-09-22checked_ilog: set `n` and `r` directly avoiding arithmetic operationsFederico Stra-6/+4
2023-09-22checked_ilog: improve performanceFederico Stra-8/+8
2023-09-19explain mysterious addition in float minimum/maximumRalf Jung-0/+2
2023-09-17Rollup merge of #115477 - kellerkindt:stabilized_int_impl, r=dtolnayDylan DPC-222/+218
2023-09-05Rollup merge of #114813 - RalfJung:fpu-control, r=AmanieuMatthias Krüger-0/+12
2023-09-03Stabilize the Saturating type (saturating_int_impl, gh-87920)Michael Watzko-99/+92
2023-09-03Unimpl Shl, ShlAssign, Shr and ShrAssign for SaturatingMichael Watzko-123/+126
2023-09-02Rollup merge of #114845 - scottmcm:npo-align, r=WaffleLapkinMatthias Krüger-0/+14
2023-09-01[`clippy`] Use symbols intended for `arithmetic_side_effects`Caio-0/+2
2023-08-28Auto merge of #103836 - H4x5:extra-float-constants, r=thomccbors-0/+40
2023-08-22Replace version placeholders with 1.73.0Mark Rousskov-6/+6