8283726: x86_64 intrinsics for compareUnsigned method in Integer and Long

Reviewed-by: kvn, jbhateja
This commit is contained in:
Quan Anh Mai 2022-06-29 10:34:05 +00:00 committed by Jatin Bhateja
parent b96ba19807
commit 108cd69516
15 changed files with 271 additions and 11 deletions

View file

@ -1500,6 +1500,7 @@ public final class Integer extends Number
* unsigned values
* @since 1.8
*/
@IntrinsicCandidate
public static int compareUnsigned(int x, int y) {
return compare(x + MIN_VALUE, y + MIN_VALUE);
}

View file

@ -1641,6 +1641,7 @@ public final class Long extends Number
* unsigned values
* @since 1.8
*/
@IntrinsicCandidate
public static int compareUnsigned(long x, long y) {
return compare(x + MIN_VALUE, y + MIN_VALUE);
}