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
..
2024-01-11 15:04:48 +03:00
2024-02-07 16:46:28 +01:00
2024-03-20 08:49:13 -04:00
2023-06-29 01:55:03 +02:00
2024-01-11 15:04:48 +03:00
2023-12-10 10:56:22 +08:00
2024-01-11 15:04:48 +03:00
2023-07-03 14:05:55 +02:00
2024-05-01 22:19:11 -04:00
2024-02-07 10:42:01 +08:00
2023-07-12 21:38:55 -04:00
2024-01-11 15:04:48 +03:00
2023-11-26 08:50:39 -05:00
2024-04-24 15:27:47 -07:00
2024-01-24 14:24:57 +01:00