summary refs log tree commit diff
path: root/library/core/src/num
AgeCommit message (Expand)AuthorLines
2024-06-02Rollup merge of #125884 - Rua:integer_sign_cast, r=Mark-SimulacrumJubilee-0/+48
2024-06-02Rollup merge of #121062 - RustyYato:f32-midpoint, r=the8472Jubilee-19/+36
2024-06-02Wording of the documentationRua-4/+4
2024-06-02Implement feature `integer_sign_cast`Rua-0/+48
2024-06-01Change f32::midpoint to upcast to f64RustyYato-19/+36
2024-06-02Auto merge of #124294 - tspiteri:ilog-first-iter, r=the8472bors-2/+5
2024-05-26Rollup merge of #125559 - scottmcm:simplify-shift-ubcheck, r=workingjubileeJubilee-8/+4
2024-05-26Rollup merge of #125571 - tesuji:dummy-pi, r=NilstriebMatthias Krüger-4/+4
2024-05-26f32: use constants instead of reassigning a dummy value as PILzu Tao-4/+4
2024-05-25Simplify the `unchecked_sh[lr]` ub-checks a bitScott McMurray-8/+4
2024-05-23Add assert_unsafe_precondition to unchecked_{add,sub,neg,mul,shl,shr} methodsltdk-33/+147
2024-05-16Add doctests for f16 and f128 library functions where possibleTrevor Gross-1/+40
2024-05-12reverse condition in `uN::checked_sub`ivan-shrimp-3/+3
2024-05-10Auto merge of #124863 - DaniPopes:from-str-radix-panic, r=Amanieubors-6/+6
2024-05-08Use generic `NonZero` in examples.Markus Reiter-183/+181
2024-05-08Rollup merge of #124838 - RalfJung:next_power_of_two, r=scottmcmJubilee-0/+1
2024-05-08from_str_radix: outline only the panic functionDaniPopes-6/+6
2024-05-07next_power_of_two: add a doctest to show what happens on 0Ralf Jung-0/+1
2024-05-06f16::is_sign_{positive,negative} were feature-gated on f128Trevor Spiteri-2/+2
2024-05-06Auto merge of #123850 - tspiteri:f16_f128_consts, r=Amanieubors-4/+382
2024-05-04Rollup merge of #124701 - scottmcm:unchecked_sub_docs, r=NilstriebMatthias Krüger-0/+25
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