12 static void closure_test_fn2(ffi_cif* cif
__UNUSED__,
void* resp,
void** args,
16 (
int)*(
double *)args[0] +(
int)(*(
double *)args[1]) +
17 (
int)(*(
double *)args[2]) + (
int)*(
double *)args[3] +
18 (
int)(*(
signed short *)args[4]) + (
int)(*(
double *)args[5]) +
19 (
int)*(
double *)args[6] + (
int)(*(
int *)args[7]) +
20 (
int)(*(
double *)args[8]) + (
int)*(
int *)args[9] +
21 (
int)(*(
int *)args[10]) + (
int)(*(
float *)args[11]) +
22 (
int)*(
int *)args[12] + (
int)(*(
float *)args[13]) +
23 (
int)(*(
int *)args[14]) + *(
int *)args[15] + (
intptr_t)userdata;
25 printf(
"%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d: %d\n",
26 (
int)*(
double *)args[0], (
int)(*(
double *)args[1]),
27 (
int)(*(
double *)args[2]), (
int)*(
double *)args[3],
28 (
int)(*(
signed short *)args[4]), (
int)(*(
double *)args[5]),
29 (
int)*(
double *)args[6], (
int)(*(
int *)args[7]),
30 (
int)(*(
double*)args[8]), (
int)*(
int *)args[9],
31 (
int)(*(
int *)args[10]), (
int)(*(
float *)args[11]),
32 (
int)*(
int *)args[12], (
int)(*(
float *)args[13]),
33 (
int)(*(
int *)args[14]), *(
int *)args[15], (
int)(
intptr_t)userdata,
45 ffi_closure *pcl = ffi_closure_alloc(
sizeof(ffi_closure), &code);
46 ffi_type * cl_arg_types[17];
49 cl_arg_types[0] = &ffi_type_double;
50 cl_arg_types[1] = &ffi_type_double;
51 cl_arg_types[2] = &ffi_type_double;
52 cl_arg_types[3] = &ffi_type_double;
53 cl_arg_types[4] = &ffi_type_sshort;
54 cl_arg_types[5] = &ffi_type_double;
55 cl_arg_types[6] = &ffi_type_double;
56 cl_arg_types[7] = &ffi_type_sint;
57 cl_arg_types[8] = &ffi_type_double;
58 cl_arg_types[9] = &ffi_type_sint;
59 cl_arg_types[10] = &ffi_type_sint;
60 cl_arg_types[11] = &ffi_type_float;
61 cl_arg_types[12] = &ffi_type_sint;
62 cl_arg_types[13] = &ffi_type_float;
63 cl_arg_types[14] = &ffi_type_sint;
64 cl_arg_types[15] = &ffi_type_sint;
65 cl_arg_types[16] =
NULL;
69 &ffi_type_sint, cl_arg_types) == FFI_OK);
72 (
void *) 3 , code) == FFI_OK);
75 (1, 2, 3, 4, 127, 5, 6, 8, 9, 10, 11, 12.0, 13,