summary refs log tree commit diff
path: root/library/core/src/num/mod.rs
AgeCommit message (Expand)AuthorLines
2024-09-23Rollup merge of #130713 - bjoernager:const-char-make-ascii, r=NoratriebMatthias Krüger-2/+4
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-2/+2
2024-09-22Mark 'make_ascii_uppercase' and 'make_ascii_lowercase' in 'u8' as const; Rena...Gabriel Bjørnager Jensen-2/+4
2024-09-19Rollup merge of #128001 - Krappa322:master, r=scottmcmMatthias Krüger-16/+53
2024-09-08add FIXME(const-hack)Ralf Jung-1/+1
2024-09-03replace placeholder versionBoxy-3/+3
2024-08-31Improve documentation for <integer>::from_str_radixKappa322-16/+53
2024-08-28Speed up `checked_isqrt` and `isqrt` methodsChai T. Rex-0/+1
2024-07-29Reformat `use` declarations.Nicholas Nethercote-21/+11
2024-07-27Auto merge of #128255 - stepancheg:doc-shl, r=scottmcmbors-0/+8
2024-07-27Document int.checked_shl(BITS - 1)Stepan Koltsov-0/+8
2024-07-26Rollup merge of #124941 - Skgland:stabilize-const-int-from-str, r=dtolnayTrevor Gross-2/+3
2024-07-19add `NonZero<uN>::isqrt`ivan-shrimp-1/+0
2024-07-04mark `can_not_overflow` as `#[rustc_const_stable(...)]`Bennet Bleßmann-2/+1
2024-07-04stabilize `const_int_from_str`Skgland-2/+4
2024-06-24Small fixme in core now that NonZero is genericPavel Grigorenko-8/+0
2024-05-23Add assert_unsafe_precondition to unchecked_{add,sub,neg,mul,shl,shr} methodsltdk-0/+1
2024-05-08from_str_radix: outline only the panic functionDaniPopes-6/+6
2024-05-01Replace version placeholders for 1.79Mark Rousskov-1/+1
2024-04-22Stabilize generic `NonZero`.Markus Reiter-4/+4
2024-04-02Rollup merge of #123226 - scottmcm:u32-shifts, r=WaffleLapkinMatthias Krüger-11/+0
2024-03-30Make {integer}::from_str_radix constantGeorge Bateman-110/+183
2024-03-30De-LLVM the unchecked shifts [MCP#693]Scott McMurray-11/+0
2024-01-27Switch `NonZero` alias direction.Markus Reiter-1/+9
2024-01-23Auto merge of #119892 - joboet:libs_use_assert_unchecked, r=Nilstrieb,cuviperbors-0/+1
2024-01-21Rollup merge of #116090 - rmehri01:strict_integer_ops, r=m-ou-seNadrieril-0/+1
2024-01-15Revert unrelated changes from PR 119990David Tolnay-3/+3
2024-01-15Add private `NonZero<T>` type alias.Markus Reiter-11/+13
2024-01-13libs: use `assert_unchecked` instead of intrinsicjoboet-0/+1
2023-11-24implement strict_* operations for signed integer typesRyan Mehri-0/+1
2023-11-24correct grammarKashiwa-1/+1
2023-11-24Update comment for consistent context logic.Kashiwa-2/+2
2023-10-26Refactor some `char`, `u8` ascii functions to be branchlessokaneco-3/+6
2023-10-23fix typos in commentsGoodDaisy-1/+1
2023-10-03Bump version placeholdersMark Rousskov-1/+1
2023-09-03Stabilize the Saturating type (saturating_int_impl, gh-87920)Michael Watzko-2/+1
2023-06-16[libs] Simplify `unchecked_{shl,shr}`Scott McMurray-12/+5
2023-05-14Auto merge of #92048 - Urgau:num-midpoint, r=scottmcmbors-0/+59
2023-05-03Add the basic `ascii::Char` typeScott McMurray-1/+10
2023-04-26Implement midpoint for all signed and unsigned integersLoïc BRANSTETT-0/+59
2023-04-17fix codegen differenceDeadbeef-0/+18
2023-04-16more hacksDeadbeef-1/+0
2023-03-27Fix ASCII case commentclubby789-1/+1
2023-02-20Use named arguments for `int_impl` macroNilstrieb-34/+162
2023-02-20Use named arguments for `uint_impl` macroNilstrieb-33/+155
2023-02-10Remove a couple of `#[doc(hidden)] pub fn` and their `#[feature]` gatesTobias Bucher-12/+0
2022-12-08Fix warning when libcore is compiled with no_fp_fmt_parseGary Guo-1/+3
2022-10-23`unchecked_{shl|shr}` should use `u32` as the RHSScott McMurray-0/+1
2022-10-03Rollup merge of #101308 - nerdypepper:feature/is-ascii-octdigit, r=joshtriplettMatthias Krüger-0/+32
2022-10-03Rollup merge of #100470 - reitermarkus:patch-1, r=joshtriplettMatthias Krüger-1/+1