RFR: 8283726: x86_64 intrinsics for compare method in Integer and Long

Quan Anh Mai duke at openjdk.java.net
Tue Jun 7 17:19:45 UTC 2022


Hi,

This patch implements intrinsics for `Integer/Long::compareUnsigned` using the same approach as the JVM does for long and floating-point comparisons. This allows efficient and reliable usage of unsigned comparison in Java, which is a basic operation and is important for range checks such as discussed in #8620 .

Thank you very much.

-------------

Commit messages:
 - format
 - compare unsigned

Changes: https://git.openjdk.java.net/jdk/pull/9068/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=9068&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8283726
  Stats: 235 lines in 13 files changed: 224 ins; 0 del; 11 mod
  Patch: https://git.openjdk.java.net/jdk/pull/9068.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/9068/head:pull/9068

PR: https://git.openjdk.java.net/jdk/pull/9068


More information about the core-libs-dev mailing list