Mercurial > hg > graal-jvmci-8
diff src/share/vm/runtime/sharedRuntime.hpp @ 23886:5601e440e5e7
8130150: Implement BigInteger.montgomeryMultiply intrinsic
Reviewed-by: kvn, mdoerr
author | vkempik |
---|---|
date | Fri, 04 Mar 2016 16:15:48 +0300 |
parents | cf9f24de0b93 |
children | f13e777eb255 |
line wrap: on
line diff
--- a/src/share/vm/runtime/sharedRuntime.hpp Wed Feb 17 13:40:12 2016 +0300 +++ b/src/share/vm/runtime/sharedRuntime.hpp Fri Mar 04 16:15:48 2016 +0300 @@ -145,6 +145,12 @@ static double dsqrt(double f); #endif + // Montgomery multiplication + static void montgomery_multiply(jint *a_ints, jint *b_ints, jint *n_ints, + jint len, jlong inv, jint *m_ints); + static void montgomery_square(jint *a_ints, jint *n_ints, + jint len, jlong inv, jint *m_ints); + #ifdef __SOFTFP__ // C++ compiler generates soft float instructions as well as passing // float and double in registers.