rust/src/libcore/num
Mark Simulacrum b35c60e95e
Rollup merge of #51299 - faern:const-int-ops, r=oli-obk
const fn integer operations

A follow up to #51171
Fixes #51267

Makes a lot of the integer methods (`swap_bytes`, `count_ones` etc) `const fn`s. See #51267 for a discussion about why this is wanted and the solution used.
2018-06-03 18:18:03 -06:00
..
dec2flt Remove the unstable Float trait 2018-05-22 19:19:09 +02:00
flt2dec use field init shorthand EVERYWHERE 2017-08-15 15:29:17 -07:00
bignum.rs docs: do not call integer overflows as underflows 2017-12-21 02:39:01 +01:00
diy_float.rs use field init shorthand EVERYWHERE 2017-08-15 15:29:17 -07:00
f32.rs Rollup merge of #50919 - frewsxcv:frewsxcv-epsilon, r=steveklabnik 2018-06-02 13:14:23 -06:00
f64.rs Rollup merge of #50919 - frewsxcv:frewsxcv-epsilon, r=steveklabnik 2018-06-02 13:14:23 -06:00
i8.rs Such large. Very 128. Much bits. 2016-12-30 15:15:44 +01:00
i16.rs Such large. Very 128. Much bits. 2016-12-30 15:15:44 +01:00
i32.rs Such large. Very 128. Much bits. 2016-12-30 15:15:44 +01:00
i64.rs Such large. Very 128. Much bits. 2016-12-30 15:15:44 +01:00
i128.rs Stabilize i128 feature too 2018-03-26 08:37:56 -05:00
int_macros.rs Fix a few impl stability attributes 2017-01-29 13:31:47 +00:00
isize.rs Such large. Very 128. Much bits. 2016-12-30 15:15:44 +01:00
mod.rs Make integer methods non-const in stage0 2018-06-02 13:57:31 +02:00
u8.rs Such large. Very 128. Much bits. 2016-12-30 15:15:44 +01:00
u16.rs Such large. Very 128. Much bits. 2016-12-30 15:15:44 +01:00
u32.rs Such large. Very 128. Much bits. 2016-12-30 15:15:44 +01:00
u64.rs Such large. Very 128. Much bits. 2016-12-30 15:15:44 +01:00
u128.rs Fix a few more 2018-03-26 08:37:56 -05:00
uint_macros.rs Fix a few impl stability attributes 2017-01-29 13:31:47 +00:00
usize.rs Such large. Very 128. Much bits. 2016-12-30 15:15:44 +01:00
wrapping.rs Separate feature gate for wrapping_next_power_of_two 2018-05-15 22:24:04 -04:00