News for hackers. Stuff that matters.
Re:Binary Search Reconsidered (2018) by xxs on Friday December 25, 2020 @03:16PM (#25538723)
No java doesn't use 64bits at all. It uses unsigned right shift. I mentioned it in another post: "int mid = (low + high) >>> 1;"... And for the older timers (14y ago), there used to be a bug[0] about exactly that.

[0] https://bugs.openjdk.java.net/browse/JDK-5045582

There are no comments on this comment yet.