On Wed, 30 Jul 2025 10:30:15 GMT, fabioromano1 <[email protected]> wrote:

>> fabioromano1 has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   Update javadoc
>
> src/java.base/share/classes/java/math/MutableBigInteger.java line 1921:
> 
>> 1919:      * The contents of {@code this} are <em>not</em> changed. The 
>> value of {@code this}
>> 1920:      * is assumed to be non-negative and the root degree {@code n >= 
>> 3}.
>> 1921:      * Assumes {@code bitLength() <= Integer.MAX_VALUE}.
> 
> @rgiulietti This assumption could be dropped, if the shift methods of 
> `MutableBigInteger` would accept `long` shift values too.

@rgiulietti Could make sense to enhance `MBI.leftShift(int)` and  
`MBI.rightShift(int)` to `MBI.leftShift(long)` and  `MBI.rightShift(long)`?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/24898#discussion_r2245366998

Reply via email to