diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-11-18 14:13:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-18 14:13:36 +0100 |
| commit | 6419151f8b0187849825afca91c6047fbf8930bf (patch) | |
| tree | 5dd5e5432defd361b715a6a9c1d1d41a1aeda7a9 /compiler/rustc_codegen_llvm/src | |
| parent | 3efbf3022012f3dbebd6743bf8e53f50cb1d0488 (diff) | |
| parent | f4f515973ecc689029b64759ff43dbba0e207be2 (diff) | |
| download | rust-6419151f8b0187849825afca91c6047fbf8930bf.tar.gz rust-6419151f8b0187849825afca91c6047fbf8930bf.zip | |
Rollup merge of #103594 - maniwani:fix-issue-91417, r=thomcc
Fix non-associativity of `Instant` math on `aarch64-apple-darwin` targets This is a duplicate of #94100 (since the original author is unresponsive), which resolves #91417. On `aarch64-apple-darwin` targets, the internal resolution of `Instant` is lower than that of `Duration`, so math between them becomes non-associative with small-enough durations. This PR makes this target use the standard Unix implementation (where `Instant` has 1ns resolution), but with `CLOCK_UPTIME_RAW` so it still returns the same values as `mach_absolute_time`[^1]. (Edit: I need someone to confirm that this still works, I do not have access to an M1 device.) [^1]: https://www.manpagez.com/man/3/clock_gettime/
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
