示例#1
0
SWIGEXPORT jdouble JNICALL Java_org_jllvm_bindings_ExecutionEngineJNI_LLVMGenericValueToFloat(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jdouble jresult = 0 ;
  LLVMTypeRef arg1 = (LLVMTypeRef) 0 ;
  LLVMGenericValueRef arg2 = (LLVMGenericValueRef) 0 ;
  double result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(LLVMTypeRef *)&jarg1; 
  arg2 = *(LLVMGenericValueRef *)&jarg2; 
  result = (double)LLVMGenericValueToFloat(arg1,arg2);
  jresult = (jdouble)result; 
  return jresult;
}
示例#2
0
/* Llvm.lltype -> t -> float */
CAMLprim value llvm_genericvalue_as_float(LLVMTypeRef Ty, value GenVal) {
  CAMLparam1(GenVal);
  CAMLreturn(copy_double(
    LLVMGenericValueToFloat(Ty, Genericvalue_val(GenVal))));
}