mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
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:
parent
0b867b5e73
commit
37e28aea27
20 changed files with 1155 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue