rust/library/core/src/num
bors c1d5843661 Auto merge of #79473 - m-ou-se:clamp-in-core, r=m-ou-se
Move {f32,f64}::clamp to core.

`clamp` was recently stabilized (tracking issue: https://github.com/rust-lang/rust/issues/44095). But although `Ord::clamp` was added in `core` (because `Ord` is in `core`), the versions for the `f32` and `f64` primitives were added in `std` (together with `floor`, `sin`, etc.), not in `core` (together with `min`, `max`, `from_bits`, etc.).

This change moves them to `core`, such that `clamp` on floats is available in `no_std` programs as well.
2020-12-19 21:57:38 +00:00
..
dec2flt Fix automatic_links warnings 2020-11-05 10:22:08 +01:00
flt2dec rename MaybeUninit slice methods 2020-09-05 17:24:22 +02:00
shells Move dummy integer modules (like core::u32) to shells dir 2020-09-19 14:54:20 +00:00
bignum.rs Use T::BITS instead of size_of::<T> * 8. 2020-09-19 06:54:42 +02:00
diy_float.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
error.rs Apply suggested changes 2020-10-26 18:14:12 +00:00
f32.rs Move {f32,f64}::clamp to core. 2020-11-27 19:15:51 +01:00
f64.rs Move {f32,f64}::clamp to core. 2020-11-27 19:15:51 +01:00
int_macros.rs Add popcount and popcnt as doc aliases for count_ones methods. 2020-12-17 00:22:48 +01:00
mod.rs Rollup merge of #77640 - ethanboxx:int_error_matching_attempt_2, r=KodrAus 2020-11-09 01:13:25 +01:00
nonzero.rs add trailing_zeros and leading_zeros to non zero types 2020-11-17 19:54:29 +01:00
uint_macros.rs Add popcount and popcnt as doc aliases for count_ones methods. 2020-12-17 00:22:48 +01:00
wrapping.rs Add popcount and popcnt as doc aliases for count_ones methods. 2020-12-17 00:22:48 +01:00