Peter Hawkins a7d711513c Perform searchsorted binary search using unsigned intermediate values.
Midpoint computation for a binary search should be performed unsigned, see https://research.google/blog/extra-extra-read-all-about-it-nearly-all-binary-searches-and-mergesorts-are-broken/

In addition, we can avoid the somewhat verbose floor_divide HLO since we know the values in question are positive.
2024-10-23 15:11:55 -04:00
..
2024-10-21 10:11:51 -07:00
2024-10-07 05:44:00 -07:00
2024-09-11 23:34:03 +10:00
2024-10-23 08:50:31 -04:00