rust/library/core/src/num
bors 16422dbd89 Auto merge of #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? libs
2024-10-30 02:26:18 +00:00
..
dec2flt Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
flt2dec Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
shells diagnostic items for legacy numeric constants 2024-02-18 12:08:16 -07:00
bignum.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
diy_float.rs Fix assert in diy_float 2021-07-27 16:02:35 -04:00
error.rs replace placeholder version 2024-09-03 20:54:02 +01:00
f16.rs Re-do recursive const stability checks 2024-10-25 20:31:40 +02:00
f32.rs replace placeholder version 2024-10-15 20:13:55 -07:00
f64.rs replace placeholder version 2024-10-15 20:13:55 -07:00
f128.rs Re-do recursive const stability checks 2024-10-25 20:31:40 +02:00
fmt.rs Fix a bunch of typos 2021-12-14 16:40:43 +01:00
int_log10.rs Have a function for the log(0) panic, rather than copy-pasting the string constant 2023-02-10 12:50:17 -08:00
int_macros.rs Rollup merge of #131391 - ChaiTRex:isqrt, r=scottmcm,tgross35 2024-10-28 12:14:57 +01:00
int_sqrt.rs Speed up checked_isqrt and isqrt methods 2024-08-28 23:07:04 -04:00
mod.rs Use Hacker's Delight impl in i64::midpoint instead of wide i128 impl 2024-10-27 20:34:13 +01:00
nonzero.rs Rollup merge of #131391 - ChaiTRex:isqrt, r=scottmcm,tgross35 2024-10-28 12:14:57 +01:00
overflow_panic.rs reword panic comments and add spaces to unlikely branches 2023-11-28 08:34:55 -08:00
saturating.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
uint_macros.rs Rollup merge of #131391 - ChaiTRex:isqrt, r=scottmcm,tgross35 2024-10-28 12:14:57 +01:00
wrapping.rs library: consistently use American spelling for 'behavior' 2024-10-25 12:02:47 +02:00