RFR: 8046943: RSA Acceleration

Andrew Haley aph at redhat.com
Tue Jun 16 14:33:40 UTC 2015

On 06/15/2015 05:58 PM, Andrew Haley wrote:
>>> 3.  I fused squaring and multiplication into a single
>>> >> montgomeryMultiply method.  ...
>> > 
>> > I don't agree with fusing them together.  I think there should two 
>> > separate intrinsics.  For one, SPARC has a montsqr and montmul 
>> > instructions.  Additionally if someone wants to call montgomerySquare, 
>> > they should be able to call it directly with it's needed number of 
>> > arguments and not pass 'a' twice to satisfy an internal if().

> OK, fair enough.  I'll think a little more about the best way to do
> this.

Done thusly.  The only thing I had any doubt about was whether to use a
single flag for squaring and multiplication.  This patch uses separate



More information about the hotspot-compiler-dev mailing list