mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
Added native Math.exp() implementation.
This commit is contained in:
parent
b66d8b9fbf
commit
1b6d8e1085
@ -952,6 +952,12 @@ Java_java_lang_Math_ceil(JNIEnv*, jclass, jdouble val)
|
|||||||
return ceil(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
|
extern "C" JNIEXPORT jint JNICALL
|
||||||
Java_java_lang_Double_fillBufferWithDouble(JNIEnv* e, jclass, jdouble val,
|
Java_java_lang_Double_fillBufferWithDouble(JNIEnv* e, jclass, jdouble val,
|
||||||
jbyteArray buffer, jint bufferSize) {
|
jbyteArray buffer, jint bufferSize) {
|
||||||
|
Loading…
Reference in New Issue
Block a user