RFR: JDK-8323186: A faster algorithm for MutablebigInteger.divWord(long, int) [v3]

fabioromano1 duke at openjdk.org
Mon Jan 22 18:14:26 UTC 2024


On Mon, 22 Jan 2024 18:07:49 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:

>> fabioromano1 has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Removed trailing whitespaces
>
> As you note, that would probably require two divisions. I don't know if the JIT compiler can detect that the arguments are the same and emit just one division instead.
> I think your code is good enough for the purpose of [Mutable]BigInteger, and better than the current one.

@rgiulietti It seems unlikely that the JIT compiler can do that, at least to me.

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

PR Comment: https://git.openjdk.org/jdk/pull/17291#issuecomment-1904544724


More information about the core-libs-dev mailing list