rust/library/core/tests/num
Jubilee 713cdcd803
Rollup merge of #121062 - RustyYato:f32-midpoint, r=the8472
Change f32::midpoint to upcast to f64

This has been verified by kani as a correct optimization

see: https://github.com/rust-lang/rust/issues/110840#issuecomment-1942587398

The new implementation is branchless and only differs in which NaN values are produced (if any are produced at all), which is fine to change. Aside from NaN handling, this implementation produces bitwise identical results to the original implementation.

Question: do we need a codegen test for this? I didn't add one, since the original PR #92048 didn't have any codegen tests.
2024-06-02 12:58:07 -07:00
..
dec2flt remove obsolete test 2023-04-10 21:57:45 +02:00
flt2dec use visibility to check unused imports and delete some stmts 2023-10-22 21:27:46 +08:00
bignum.rs Simplification of BigNum::bit_length 2022-01-10 14:18:28 -08:00
const_from.rs fix library and rustdoc tests 2023-04-16 11:38:52 +00:00
i8.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
i16.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
i32.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
i64.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
i128.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
ieee754.rs Remove unused unused_macros 2023-04-16 08:35:39 +02:00
int_log.rs add tests for panicking integer logarithms 2022-10-02 14:25:36 +02:00
int_macros.rs isqrt: disable long running tests in Miri 2023-09-28 17:43:01 +02:00
mod.rs Rollup merge of #121062 - RustyYato:f32-midpoint, r=the8472 2024-06-02 12:58:07 -07:00
nan.rs Update tests to remove old numeric constants 2020-11-29 00:55:55 -05:00
ops.rs Remove unused macro rules 2022-04-18 23:28:06 +02:00
u8.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
u16.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
u32.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
u64.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
u128.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
uint_macros.rs isqrt: disable long running tests in Miri 2023-09-28 17:43:01 +02:00
wrapping.rs make const_err a hard error 2022-10-07 18:08:49 +02:00