--- a/hotspot/src/share/vm/runtime/sharedRuntime.hpp Thu Jun 11 14:19:40 2015 +0300
+++ b/hotspot/src/share/vm/runtime/sharedRuntime.hpp Tue Jun 16 17:31:53 2015 +0100
@@ -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.