diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2025-09-05 22:47:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-05 22:47:22 +0200 |
| commit | 690753f7d454d1c2a66a4e4693e9975e4832ef25 (patch) | |
| tree | 0bc8700e6e6cd26679bf912e55ff789bf0704472 /compiler/rustc_codegen_gcc/example/alloc_example.rs | |
| parent | 1c2d264eb0eee9dd50a1365e8ec9e1a4f04867e4 (diff) | |
| parent | bc17bcdef005f427c74a39161dcfd1cd5d3b1a3c (diff) | |
| download | rust-690753f7d454d1c2a66a4e4693e9975e4832ef25.tar.gz rust-690753f7d454d1c2a66a4e4693e9975e4832ef25.zip | |
Rollup merge of #146225 - Jules-Bertholet:simplify-float-midpoint, r=tgross35
Simplify `{f16, f32, f64, f128}::midpoint()`
`(float_ty::MAX / 2) - (float_ty::MIN_POSITIVE * 2)` equals `(float_ty::MAX / 2) + (float_ty::MIN_POSITIVE * 2)` equals `(float_ty::MAX / 2)`. So these branches are pointless.
CC `@Urgau` who wrote the original implementation in https://github.com/rust-lang/rust/pull/92048; does this seem right?
`@rustbot` label A-floating-point
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_example.rs')
0 files changed, 0 insertions, 0 deletions
