diff options
| author | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2024-06-02 12:58:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-02 12:58:07 -0700 |
| commit | 713cdcd8036fe6a8639100efc93a31a58756356e (patch) | |
| tree | b273b0cbe9cf00a3f0d8645a4bee2072b09a7f22 /compiler/rustc_codegen_gcc | |
| parent | eda9d7f987de76b9d61c633a6ac328936e1b94f0 (diff) | |
| parent | 849c5254afdeb96a740cfac989a382fde69b6067 (diff) | |
| download | rust-713cdcd8036fe6a8639100efc93a31a58756356e.tar.gz rust-713cdcd8036fe6a8639100efc93a31a58756356e.zip | |
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.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
