forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 16422db
Auto merge of rust-lang#132238 - Urgau:midpoint-i64-hackers-impl, r=joboet
Use Hacker's Delight impl in `i64::midpoint` instead of wide `i128` impl
This PR switches `i64::midpoint` and (`isize::midpoint` where `isize == i64`) to using our Hacker's Delight impl instead of wide `i128` implementation.
As LLVM seems to be outperformed by the complexity of signed 128-bits number compared to our Hacker's Delight implementation.[^1]
It doesn't seems like it's an improvement for the other sizes[^2], so we let them with the wide implementation.
[^1]: https://rust.godbolt.org/z/ravE75EYj
[^2]: https://rust.godbolt.org/z/fzr171zKh
r? libs1 file changed
+2
-2
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
429 | 429 |
| |
430 | 430 |
| |
431 | 431 |
| |
432 | - | ||
432 | + | ||
433 | 433 |
| |
434 | 434 |
| |
435 | 435 |
| |
| |||
530 | 530 |
| |
531 | 531 |
| |
532 | 532 |
| |
533 | - | ||
533 | + | ||
534 | 534 |
| |
535 | 535 |
| |
536 | 536 |
| |
|
0 commit comments