mirror of
https://github.com/corda/corda.git
synced 2025-01-05 20:54:13 +00:00
Math.floor() is used by SWT. Defers to the libm (or GCC builtin)
for floor
This commit is contained in:
parent
1406d6bc24
commit
b59d234b16
@ -70,8 +70,15 @@ Java_java_lang_System_doMapLibraryName(JNIEnv* e, jclass, jstring name)
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include <math.h>
|
||||||
|
extern "C" JNIEXPORT jdouble JNICALL
|
||||||
|
Java_java_lang_Math_floor(JNIEnv*, jclass, jdouble val)
|
||||||
|
{
|
||||||
|
return floor(val);
|
||||||
|
}
|
||||||
|
|
||||||
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) {
|
||||||
jboolean isCopy;
|
jboolean isCopy;
|
||||||
jbyte* buf = e->GetByteArrayElements(buffer, &isCopy);
|
jbyte* buf = e->GetByteArrayElements(buffer, &isCopy);
|
||||||
|
Loading…
Reference in New Issue
Block a user