mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8297731: Remove redundant check in MutableBigInteger.divide
Reviewed-by: bpb
This commit is contained in:
parent
dcf431db0b
commit
c68556916a
1 changed files with 5 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1531,13 +1531,10 @@ class MutableBigInteger {
|
|||
quotient.intLen = limit;
|
||||
int[] q = quotient.value;
|
||||
|
||||
|
||||
// Must insert leading 0 in rem if its length did not change
|
||||
if (rem.intLen == nlen) {
|
||||
rem.offset = 0;
|
||||
rem.value[0] = 0;
|
||||
rem.intLen++;
|
||||
}
|
||||
// Insert leading 0 in rem
|
||||
rem.offset = 0;
|
||||
rem.value[0] = 0;
|
||||
rem.intLen++;
|
||||
|
||||
int dh = divisor[0];
|
||||
long dhLong = dh & LONG_MASK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue