about summary refs log tree commit diff
path: root/library/core/src/num
AgeCommit message (Expand)AuthorLines
2024-05-04Docs: suggest `uN::checked_sub` instead of check-then-uncheckedScott McMurray-0/+25
2024-05-04Remove an unnecessary castScott McMurray-1/+1
2024-05-02add constants in std::f128::constsTrevor Spiteri-1/+110
2024-05-02add constants in std::f16::constsTrevor Spiteri-1/+106
2024-05-02add f128 associated constantsTrevor Spiteri-1/+83
2024-05-02add f16 associated constantsTrevor Spiteri-1/+83
2024-05-01Step bootstrap cfgsMark Rousskov-65/+8
2024-05-01Replace version placeholders for 1.79Mark Rousskov-16/+16
2024-04-23Rollup merge of #124003 - WaffleLapkin:dellvmization, r=scottmcm,RalfJung,antoyoMatthias Krüger-7/+32
2024-04-23unroll first iter of checked_ilog loop to save one multiplicationTrevor Spiteri-2/+5
2024-04-22Rollup merge of #124230 - reitermarkus:generic-nonzero-stable, r=dtolnayGuillaume Gomez-9/+9
2024-04-22Rollup merge of #115913 - FedericoStra:checked_ilog, r=the8472Guillaume Gomez-21/+16
2024-04-22Stabilize generic `NonZero`.Markus Reiter-9/+9
2024-04-22Add comma at one place in `abs()` documentationGurinder Singh-1/+1
2024-04-21Rollup merge of #124184 - gurry:124152-suggest-unsigned-abs-in-abs-doc, r=jhp...Guillaume Gomez-1/+2
2024-04-20Suggest using `unsigned_abs` in `abs` documentationGurinder Singh-1/+2
2024-04-18Make `checked` ops emit *unchecked* LLVM operations where feasibleScott McMurray-10/+47
2024-04-16Change intrinsic types to use `u32` instead of `T` to match stable reexportsMaybe Waffle-7/+32
2024-04-11Add a `Debug` impl and some basic functions to `f16` and `f128`Trevor Gross-0/+208
2024-04-10Add basic f16 and f128 modulesTrevor Gross-0/+32
2024-04-02Rollup merge of #123226 - scottmcm:u32-shifts, r=WaffleLapkinMatthias Krüger-27/+48
2024-03-30Make {integer}::from_str_radix constantGeorge Bateman-166/+186
2024-03-30De-LLVM the unchecked shifts [MCP#693]Scott McMurray-27/+48
2024-03-29Auto merge of #122520 - scottmcm:stabilize_unchecked_math_basics, r=jhprattbors-36/+60
2024-03-27`num::NonZero::get` can be 1 transmute instead of 3Scott McMurray-12/+14
2024-03-23move assert_unsafe_preconditions to its own fileRalf Jung-2/+3
2024-03-20step cfgsMark Rousskov-20/+4
2024-03-17chore(121952): echo comments on the `*_assign` methodsPetr Portnov-0/+3
2024-03-17chore(121952): remove redundant commentsPetr Portnov-3/+0
2024-03-17feat: implement `{Div,Rem}Assign<NonZero<X>>` on `X`Petr Portnov-1/+20
2024-03-17Auto merge of #121885 - reitermarkus:generic-nonzero-inner, r=oli-obk,wesleyw...bors-51/+98
2024-03-15Workaround issue 122566Scott McMurray-6/+6
2024-03-14Stabilize `unchecked_{add,sub,mul}`Scott McMurray-36/+60
2024-03-14Hide implementation details for `NonZero` auto traits.Markus Reiter-1/+22
2024-03-10Fix lint.Markus Reiter-0/+1
2024-03-10Move generic `NonZero` `rustc_layout_scalar_valid_range_start` attribute to i...Markus Reiter-51/+76
2024-03-09fix legacy numeric constant diag itemsPeter Jaszkowiak-0/+2
2024-03-09NonZero::from_mut_unchecked is library UBBen Kimock-1/+1
2024-03-08Distinguish between library and lang UB in assert_unsafe_preconditionBen Kimock-4/+6
2024-03-02const_eval_select: make it safe but be careful with what we expose on stable ...Ralf Jung-4/+16
2024-03-01Make `ZeroablePrimitive` trait unsafe.Markus Reiter-2/+6
2024-02-22Use generic `NonZero` everywhere in `core`.Markus Reiter-9/+7
2024-02-20Rollup merge of #121241 - reitermarkus:generic-nonzero-traits, r=dtolnayNilstrieb-179/+211
2024-02-18diagnostic items for legacy numeric constantsPeter Jaszkowiak-0/+32
2024-02-17Implement `NonZero` traits generically.Markus Reiter-179/+211
2024-02-17Auto merge of #120563 - reitermarkus:generic-nonzero-get, r=dtolnaybors-20/+21
2024-02-16Auto merge of #120486 - reitermarkus:use-generic-nonzero, r=dtolnaybors-5/+5
2024-02-15doc: panicking division by zero examples for unsigned strict div opsTrevor Spiteri-0/+27
2024-02-15doc: add note before panicking examples for strict_overflow_opsTrevor Spiteri-0/+52
2024-02-15Replace `NonZero::<_>::new` with `NonZero::new`.Markus Reiter-1/+1