/external/libffi/testsuite/libffi.call/ |
cls_double.c | 26 ffi_closure *pcl; local 31 pcl = allocate_mmap (sizeof(ffi_closure)); 33 pcl = &cl; 43 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_double_fn, NULL) == FFI_OK); 45 res = (*((cls_ret_double)pcl))(21474.789);
|
cls_float.c | 27 ffi_closure *pcl; local 32 pcl = allocate_mmap (sizeof(ffi_closure)); 34 pcl = &cl; 45 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_float_fn, NULL) == FFI_OK); 46 res = ((((cls_ret_float)pcl)(-2122.12)));
|
cls_ulonglong.c | 26 ffi_closure *pcl; local 31 pcl = allocate_mmap (sizeof(ffi_closure)); 33 pcl = &cl; 42 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_ulonglong_fn, NULL) == FFI_OK); 43 res = (*((cls_ret_ulonglong)pcl))(214LL); 48 res = (*((cls_ret_ulonglong)pcl))(9223372035854775808LL);
|
cls_schar.c | 27 ffi_closure *pcl; local 32 pcl = allocate_mmap (sizeof(ffi_closure)); 34 pcl = &cl; 44 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_schar_fn, NULL) == FFI_OK); 46 res = (*((cls_ret_schar)pcl))(127);
|
cls_sint.c | 25 ffi_closure *pcl; local 30 pcl = allocate_mmap (sizeof(ffi_closure)); 32 pcl = &cl; 42 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_sint_fn, NULL) == FFI_OK); 44 res = (*((cls_ret_sint)pcl))(65534);
|
cls_sshort.c | 25 ffi_closure *pcl; local 30 pcl = allocate_mmap (sizeof(ffi_closure)); 32 pcl = &cl; 42 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_sshort_fn, NULL) == FFI_OK); 44 res = (*((cls_ret_sshort)pcl))(255);
|
cls_uchar.c | 25 ffi_closure *pcl; local 30 pcl = allocate_mmap (sizeof(ffi_closure)); 32 pcl = &cl; 42 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_uchar_fn, NULL) == FFI_OK); 44 res = (*((cls_ret_uchar)pcl))(127);
|
cls_uint.c | 26 ffi_closure *pcl; local 31 pcl = allocate_mmap (sizeof(ffi_closure)); 33 pcl = &cl; 43 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_uint_fn, NULL) == FFI_OK); 45 res = (*((cls_ret_uint)pcl))(2147483647);
|
cls_ushort.c | 26 ffi_closure *pcl; local 31 pcl = allocate_mmap (sizeof(ffi_closure)); 33 pcl = &cl; 43 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_ushort_fn, NULL) == FFI_OK); 45 res = (*((cls_ret_ushort)pcl))(65535);
|
closure_fn0.c | 55 ffi_closure *pcl; local 60 pcl = allocate_mmap (sizeof(ffi_closure)); 62 pcl = &cl; 87 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn0, 90 res = (*((closure_test_type0)pcl))
|
closure_fn1.c | 47 ffi_closure *pcl; local 52 pcl = allocate_mmap (sizeof(ffi_closure)); 54 pcl = &cl; 79 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn1, 82 res = (*((closure_test_type1)pcl))
|
closure_fn2.c | 47 ffi_closure *pcl; local 52 pcl = allocate_mmap (sizeof(ffi_closure)); 54 pcl = &cl; 79 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn2, 82 res = (*((closure_test_type2)pcl))
|
closure_fn3.c | 48 ffi_closure *pcl; local 53 pcl = allocate_mmap (sizeof(ffi_closure)); 55 pcl = &cl; 80 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn3, 83 res = (*((closure_test_type3)pcl))
|
closure_fn4.c | 66 ffi_closure *pcl; local 71 pcl = allocate_mmap (sizeof(ffi_closure)); 73 pcl = &cl; 86 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn0, 89 res = (*((closure_test_type0)pcl))
|
closure_fn5.c | 65 ffi_closure *pcl; local 69 pcl = allocate_mmap (sizeof(ffi_closure)); 71 pcl = &cl; 88 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn5, 91 res = (*((closure_test_type0)pcl))
|
closure_fn6.c | 56 ffi_closure *pcl; local 61 pcl = allocate_mmap (sizeof(ffi_closure)); 63 pcl = &cl; 88 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn0, 91 res = (*((closure_test_type0)pcl))
|
closure_stdcall.c | 34 ffi_closure *pcl; local 42 pcl = allocate_mmap (sizeof(ffi_closure)); 44 pcl = &cl; 57 CHECK(ffi_prep_closure(pcl, &cif, closure_test_stdcall, 61 res = (*(closure_test_type0)pcl)(0, 1, 2, 3);
|
cls_multi_schar.c | 42 ffi_closure *pcl; local 49 pcl = allocate_mmap (sizeof(ffi_closure)); 51 pcl = &cl; 74 CHECK(ffi_prep_closure(pcl, &cif, test_func_gn, NULL) == FFI_OK); 76 res_closure = (*((test_type)pcl))(2, 125);
|
cls_multi_sshort.c | 42 ffi_closure *pcl; local 49 pcl = allocate_mmap (sizeof(ffi_closure)); 51 pcl = &cl; 74 CHECK(ffi_prep_closure(pcl, &cif, test_func_gn, NULL) == FFI_OK); 76 res_closure = (*((test_type)pcl))(2, 32765);
|
cls_multi_sshortchar.c | 47 ffi_closure *pcl; local 55 pcl = allocate_mmap (sizeof(ffi_closure)); 57 pcl = &cl; 86 CHECK(ffi_prep_closure(pcl, &cif, test_func_gn, NULL) == FFI_OK); 88 res_closure = (*((test_type)pcl))(1, 32765, 127, -128);
|
cls_multi_ushort.c | 42 ffi_closure *pcl; local 49 pcl = allocate_mmap (sizeof(ffi_closure)); 51 pcl = &cl; 74 CHECK(ffi_prep_closure(pcl, &cif, test_func_gn, NULL) == FFI_OK); 76 res_closure = (*((test_type)pcl))(2, 32765);
|
cls_multi_ushortchar.c | 47 ffi_closure *pcl; local 55 pcl = allocate_mmap (sizeof(ffi_closure)); 57 pcl = &cl; 86 CHECK(ffi_prep_closure(pcl, &cif, test_func_gn, NULL) == FFI_OK); 88 res_closure = (*((test_type)pcl))(1, 2, 127, 128);
|
cls_1_1byte.c | 49 ffi_closure *pcl; local 56 pcl = allocate_mmap (sizeof(ffi_closure)); 58 pcl = &cl; 89 CHECK(ffi_prep_closure(pcl, &cif, cls_struct_1_1byte_gn, NULL) == FFI_OK); 91 res_dbl = ((cls_struct_1_1byte(*)(cls_struct_1_1byte, cls_struct_1_1byte))(pcl))(g_dbl, f_dbl);
|
cls_2byte.c | 49 ffi_closure *pcl; local 56 pcl = allocate_mmap (sizeof(ffi_closure)); 58 pcl = &cl; 90 CHECK(ffi_prep_closure(pcl, &cif, cls_struct_2byte_gn, NULL) == FFI_OK); 92 res_dbl = ((cls_struct_2byte(*)(cls_struct_2byte, cls_struct_2byte))(pcl))(g_dbl, f_dbl);
|
/external/libffi/testsuite/libffi.special/ |
unwindtest.cc | 56 ffi_closure *pcl; local 59 pcl = (ffi_closure *) allocate_mmap (sizeof(ffi_closure)); 61 pcl = &cl; 69 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn, NULL) == FFI_OK); 73 (*((closure_test_type)(pcl)))(); 107 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn1, 111 (*((closure_test_type1)pcl))
|