8282221: x86 intrinsics for divideUnsigned and remainderUnsigned methods in java.lang.Integer and java.lang.Long

Reviewed-by: sviswanathan, kvn, jbhateja
This commit is contained in:
vamsi-parasa 2022-04-10 03:47:18 +00:00 committed by Jatin Bhateja
parent 0b867b5e73
commit 37e28aea27
20 changed files with 1155 additions and 2 deletions

View file

@ -1663,6 +1663,7 @@ public final class Long extends Number
* @see #remainderUnsigned
* @since 1.8
*/
@IntrinsicCandidate
public static long divideUnsigned(long dividend, long divisor) {
/* See Hacker's Delight (2nd ed), section 9.3 */
if (divisor >= 0) {
@ -1685,6 +1686,7 @@ public final class Long extends Number
* @see #divideUnsigned
* @since 1.8
*/
@IntrinsicCandidate
public static long remainderUnsigned(long dividend, long divisor) {
/* See Hacker's Delight (2nd ed), section 9.3 */
if (divisor >= 0) {