mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8283726: x86_64 intrinsics for compareUnsigned method in Integer and Long
Reviewed-by: kvn, jbhateja
This commit is contained in:
parent
b96ba19807
commit
108cd69516
15 changed files with 271 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue