Files
rust/library/core/src
Jacob Pratt 08dc8c931f Rollup merge of #136296 - RalfJung:float-min-max, r=tgross35
float::min/max: mention the non-determinism around signed 0

Turns out this can actually produce different results on different machines [in practice](https://github.com/rust-lang/rust/issues/83984#issuecomment-2623859230); that seems worth documenting. I assume LLVM will happily const-fold these operations so so there could be different results for the same input even on the same machine, depending on whether things get const-folded or not.

`@nikic` I remember there was an LLVM soundness fix regarding scalar evolution for loops that had to recognize certain operations as non-deterministic... it seems to me that pass would also have to avoid predicting the result of `llvm.{min,max}num`, for the same reason?

r? `@tgross35`
Cc `@rust-lang/libs-api`

If this lands we should also make Miri non-deterministic here.

Fixes https://github.com/rust-lang/rust/issues/83984
2025-01-31 00:25:38 -05:00
..
2025-01-29 20:15:49 +01:00
…
…
…
2025-01-08 21:26:39 +01:00
fmt
2025-01-08 22:11:33 +01:00
2025-01-27 07:54:58 +00:00
2025-01-26 04:57:11 +00:00
2025-01-20 18:35:32 +01:00
2025-01-22 00:20:54 +01:00
…
2025-01-08 20:02:18 +01:00
…
…
…
2025-01-22 09:19:24 +02:00
2025-01-22 17:53:39 +02:00
…
…
…
2025-01-20 18:35:32 +01:00
2025-01-27 07:54:58 +00:00
2025-01-26 10:26:37 +00:00
2025-01-26 04:57:11 +00:00
…
…
…
2025-01-24 23:26:02 -07:00
…
…
…
…
…