From 13848cb520fe589fa0d59556a6a3baa8d4d65eba Mon Sep 17 00:00:00 2001 From: Alexey Pelykh Date: Mon, 21 Jan 2013 18:19:55 +0200 Subject: [PATCH] java.lang.Math.log() and java.lang.Math.tan() --- classpath/java-lang.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/classpath/java-lang.cpp b/classpath/java-lang.cpp index 865f3c3fb4..a671a53d1d 100644 --- a/classpath/java-lang.cpp +++ b/classpath/java-lang.cpp @@ -785,6 +785,12 @@ Java_java_lang_Math_cos(JNIEnv*, jclass, jdouble val) return cos(val); } +extern "C" JNIEXPORT jdouble JNICALL +Java_java_lang_Math_tan(JNIEnv*, jclass, jdouble val) +{ + return tan(val); +} + extern "C" JNIEXPORT jdouble JNICALL Java_java_lang_Math_sqrt(JNIEnv*, jclass, jdouble val) { @@ -797,6 +803,12 @@ Java_java_lang_Math_pow(JNIEnv*, jclass, jdouble val, jdouble exp) return pow(val, exp); } +extern "C" JNIEXPORT jdouble JNICALL +Java_java_lang_Math_log(JNIEnv*, jclass, jdouble val) +{ + return log(val); +} + extern "C" JNIEXPORT jdouble JNICALL Java_java_lang_Math_floor(JNIEnv*, jclass, jdouble val) {