From 1b6d8e1085a8d671f3986a34121815157f0c0cb4 Mon Sep 17 00:00:00 2001 From: JET Date: Tue, 9 Jul 2013 08:31:48 -0600 Subject: [PATCH] Added native Math.exp() implementation. --- classpath/java-lang.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/classpath/java-lang.cpp b/classpath/java-lang.cpp index 88a4cf5ef6..2ee3bf44eb 100644 --- a/classpath/java-lang.cpp +++ b/classpath/java-lang.cpp @@ -952,6 +952,12 @@ Java_java_lang_Math_ceil(JNIEnv*, jclass, jdouble val) return ceil(val); } +extern "C" JNIEXPORT jdouble JNICALL +Java_java_lang_Math_exp(JNIEnv*, jclass, jdouble exp) +{ + return pow(M_E, exp); +} + extern "C" JNIEXPORT jint JNICALL Java_java_lang_Double_fillBufferWithDouble(JNIEnv* e, jclass, jdouble val, jbyteArray buffer, jint bufferSize) {