mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
![]() 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. |
||
---|---|---|
.. | ||
dec2flt | ||
flt2dec | ||
bignum.rs | ||
const_from.rs | ||
i8.rs | ||
i16.rs | ||
i32.rs | ||
i64.rs | ||
i128.rs | ||
ieee754.rs | ||
int_log.rs | ||
int_macros.rs | ||
mod.rs | ||
nan.rs | ||
ops.rs | ||
u8.rs | ||
u16.rs | ||
u32.rs | ||
u64.rs | ||
u128.rs | ||
uint_macros.rs | ||
wrapping.rs |