Glad it worked.
There were a number of "unsigned" related operations added in 1.8.
I cannot find any of the official doc, but here is a decent
summarization of what was added:
https://www.baeldung.com/java-unsigned-arithmetic

On Thu, Jul 18, 2024 at 11:16 AM Lasse Collin <lasse.col...@tukaani.org> wrote:
>
> On 2024-07-18 Brett Okken wrote:
> > Did you try out the Integer.compareUnsigned method as an alternative?
>
> No, I was too dumb to even look for it. :-( This code was written when
> Java 6 was the latest stable release, and back then it seemed that Java
> was quite negative about supporting unsigned integers.
>
> Integer.compareUnsigned seems to give the same performance as the
> "long" method on x86-64. So compareUnsigned is the obvious choice. I
> have committed it to master.
>
> Thanks!
>
> --
> Lasse Collin

Reply via email to