You don't need this, it's just a typedef, for example:
typedef double jdouble;
Thus, no conversion is required, as soon as you have it jdouble, you can treat it the same way double.
See for example an example from Standford :
JNIEXPORT jdouble JNICALL Java_Summer_sum__DD
(JNIEnv *env, jobject jobj, jdouble j1, jdouble j2) {
return j1 + j2;
}
Adding is done directly with the values jdouble, trusting the compiler to figure out how to generate the required code.
source
share