diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-05-30 07:01:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-30 07:01:31 +0200 |
| commit | 3ebdd59770ec5f0a3ff17098fbf73dc8bc810152 (patch) | |
| tree | a8be99022d82b20271623b5e7a958ad863a0e889 /compiler/rustc_codegen_gcc/example/alloc_system.rs | |
| parent | 5023691213f12b49ff9b47dba8c1f79479279f5e (diff) | |
| parent | 70cce1c76264cfa7006d296a81ff2ae01afe186a (diff) | |
| download | rust-3ebdd59770ec5f0a3ff17098fbf73dc8bc810152.tar.gz rust-3ebdd59770ec5f0a3ff17098fbf73dc8bc810152.zip | |
Rollup merge of #141669 - tgross35:float-test-cleanup, r=RalfJung
float: Replace some approximate assertions with exact As was mentioned at [1], we currently use `assert_approx_eq` for testing some math functions that guarantee exact results. Replace approximate assertions with exact ones for the following: * `ceil` * `floor` * `fract` * `from_bits` * `mul_add` * `round_ties_even` * `round` * `trunc` This likely wasn't done in the past to avoid writing out exact decimals that don't match the intuitive answer (e.g. 1.3 - 1.0 = 0.300...004), but ensuring our results are accurate seems more important here. [1]: https://github.com/rust-lang/rust/pull/138087#issuecomment-2842069281 The first commit is a small bit of macro cleanup. try-job: aarch64-gnu try-job: x86_64-gnu-aux
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_system.rs')
0 files changed, 0 insertions, 0 deletions
