about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2025-09-05 22:47:22 +0200
committerGitHub <noreply@github.com>2025-09-05 22:47:22 +0200
commit690753f7d454d1c2a66a4e4693e9975e4832ef25 (patch)
tree0bc8700e6e6cd26679bf912e55ff789bf0704472 /compiler/rustc_codegen_llvm/src/errors.rs
parent1c2d264eb0eee9dd50a1365e8ec9e1a4f04867e4 (diff)
parentbc17bcdef005f427c74a39161dcfd1cd5d3b1a3c (diff)
downloadrust-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_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions