summary refs log tree commit diff
path: root/src/libcore/num/mod.rs
AgeCommit message (Expand)AuthorLines
2020-07-02Rollup merge of #73938 - nbdd0121:checked_opt, r=nagisaManish Goregaokar-27/+43
2020-07-01Optimise fast path of checked_ops with `unlikely`Gary Guo-27/+43
2020-06-30Deny unsafe ops in unsafe fns, part 6LeSeulArtichaut-1/+0
2020-06-30Deny unsafe ops in unsafe fns, part 3LeSeulArtichaut-7/+21
2020-06-29Auto merge of #73032 - yoshuawuyts:stabilize-leading_trailing_ones, r=Amanieubors-12/+12
2020-06-28Remove `const_if_match` feature gate from librariesDylan MacKenzie-3/+3
2020-06-12Rollup merge of #72906 - lzutao:migrate-numeric-assoc-consts, r=dtolnayDylan DPC-33/+33
2020-06-11Update src/libcore/num/mod.rsAmanieu d'Antras-2/+2
2020-06-10Fix doctest templateMihail Malo-1/+2
2020-06-10Migrate to numeric associated constsLzu Tao-33/+33
2020-06-05stabilize leading_trailing_onesYoshua Wuyts-12/+12
2020-05-19Rollup merge of #71886 - t-rapp:tr-saturating-funcs, r=dtolnayDylan DPC-6/+4
2020-05-16Rollup merge of #72224 - lzutao:links, r=Dylan-DPCDylan DPC-8/+8
2020-05-15Auto merge of #69659 - CAD97:step-rework-take-3, r=Amanieubors-0/+102
2020-05-15doc: add links to rotate_(left|right)Lzu Tao-8/+8
2020-05-04Stabilize saturating_abs and saturating_negTobias Rapp-6/+4
2020-04-26Fix since attribute for nonzero_bitor impl'sJonas Platte-5/+5
2020-04-25Rollup merge of #69813 - thomcc:nonzero-bitor, r=AmanieuDylan DPC-0/+52
2020-04-08Add inherent impls for unchecked math intrinsicsCAD97-0/+102
2020-04-03Make documentation examples use new integer assoc constsLinus Färnstrand-1/+1
2020-04-02Fix typo in u8::to_ascii_uppercase and u8::to_ascii_lowercasePocakking-2/+2
2020-03-13update stable-since version for const_int_conversionTrevor Spiteri-12/+12
2020-03-11Rollup merge of #69373 - tspiteri:const_int_conversion, r=oli-obkMazdak Farrokhzad-16/+48
2020-03-07Implement BitOr and BitOrAssign for the NonZero integer typesThom Chiovoloni-0/+52
2020-03-04Auto merge of #68952 - faern:stabilize-assoc-int-consts, r=dtolnaybors-135/+129
2020-02-26use unions instead of transmute and add const safety commentsTrevor Spiteri-8/+36
2020-02-22Rollup merge of #68984 - ecstatic-morse:const-u8-is-ascii, r=sfacklerDylan DPC-1/+2
2020-02-22Stabilize const for integer {to,from}_{be,le,ne}_bytes methodsTrevor Spiteri-12/+16
2020-02-20Rollup merge of #68978 - ecstatic-morse:const-int-pow, r=oli-obkDylan DPC-23/+46
2020-02-12Replace min/max_value() with MIN/MAX in integer docsLinus Färnstrand-52/+52
2020-02-12Use new preferred consts in int docsLinus Färnstrand-35/+13
2020-02-12Add "soft deprecation" notice to old min/max_value() docsLinus Färnstrand-40/+60
2020-02-12Stabilize assoc_int_constsLinus Färnstrand-8/+4
2020-02-10Rollup merge of #68986 - ecstatic-morse:const-ascii-ctype, r=CentrilDylan DPC-10/+20
2020-02-08Make `u8::is_ascii` a stable `const fn`Dylan MacKenzie-1/+2
2020-02-08Make the ASCII ctype inherent methods constDylan MacKenzie-10/+20
2020-02-08Make integer power methods constDylan MacKenzie-14/+28
2020-02-08Use bespoke macro instead of `?` inside const fnsDylan MacKenzie-6/+16
2020-02-08[!] Use `rustc_inherit_overflow_checks` in `next_power_of_two`Dylan MacKenzie-3/+2
2020-02-08Make `num::NonZeroX::new` an unstable `const fn`Dylan MacKenzie-1/+2
2020-02-04Use consistent feature namingDylan MacKenzie-45/+45
2020-02-04Make saturating arithmetic using intrinsics `const`Dylan MacKenzie-2/+4
2020-02-04Make checked division `const`Dylan MacKenzie-4/+8
2020-02-04Make wrapping arithmetic `const`Dylan MacKenzie-4/+8
2020-02-04Make `saturating_mul` a `const fn`Dylan MacKenzie-6/+12
2020-02-04Make overflowing arithmetic `const`Dylan MacKenzie-4/+8
2020-02-04Make checked arithmetic besides division `const`Dylan MacKenzie-13/+26
2020-02-04Make euclidean division `const`Dylan MacKenzie-16/+32
2020-01-30Auto merge of #68325 - faern:move-numeric-consts-to-associated-consts-step1, ...bors-23/+51
2020-01-29Document `From` implementation for NonZero numsLeSeulArtichaut-2/+6