Home
last modified time | relevance | path

Searched refs:pcl (Results 1 – 25 of 70) sorted by relevance

123

/external/libffi/testsuite/libffi.call/
Dcls_ulonglong.c26 ffi_closure *pcl; in main() local
31 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
33 pcl = &cl; in main()
42 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_ulonglong_fn, NULL) == FFI_OK); in main()
43 res = (*((cls_ret_ulonglong)pcl))(214LL); in main()
48 res = (*((cls_ret_ulonglong)pcl))(9223372035854775808LL); in main()
Dcls_float.c27 ffi_closure *pcl; in main() local
32 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
34 pcl = &cl; in main()
45 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_float_fn, NULL) == FFI_OK); in main()
46 res = ((((cls_ret_float)pcl)(-2122.12))); in main()
Dcls_double.c26 ffi_closure *pcl; in main() local
31 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
33 pcl = &cl; in main()
43 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_double_fn, NULL) == FFI_OK); in main()
45 res = (*((cls_ret_double)pcl))(21474.789); in main()
Dcls_sint.c25 ffi_closure *pcl; in main() local
30 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
32 pcl = &cl; in main()
42 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_sint_fn, NULL) == FFI_OK); in main()
44 res = (*((cls_ret_sint)pcl))(65534); in main()
Dcls_ushort.c26 ffi_closure *pcl; in main() local
31 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
33 pcl = &cl; in main()
43 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_ushort_fn, NULL) == FFI_OK); in main()
45 res = (*((cls_ret_ushort)pcl))(65535); in main()
Dcls_uchar.c25 ffi_closure *pcl; in main() local
30 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
32 pcl = &cl; in main()
42 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_uchar_fn, NULL) == FFI_OK); in main()
44 res = (*((cls_ret_uchar)pcl))(127); in main()
Dcls_sshort.c25 ffi_closure *pcl; in main() local
30 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
32 pcl = &cl; in main()
42 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_sshort_fn, NULL) == FFI_OK); in main()
44 res = (*((cls_ret_sshort)pcl))(255); in main()
Dcls_schar.c27 ffi_closure *pcl; in main() local
32 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
34 pcl = &cl; in main()
44 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_schar_fn, NULL) == FFI_OK); in main()
46 res = (*((cls_ret_schar)pcl))(127); in main()
Dcls_uint.c26 ffi_closure *pcl; in main() local
31 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
33 pcl = &cl; in main()
43 CHECK(ffi_prep_closure(pcl, &cif, cls_ret_uint_fn, NULL) == FFI_OK); in main()
45 res = (*((cls_ret_uint)pcl))(2147483647); in main()
Dclosure_stdcall.c34 ffi_closure *pcl; in main() local
42 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
44 pcl = &cl; in main()
57 CHECK(ffi_prep_closure(pcl, &cif, closure_test_stdcall, in main()
61 res = (*(closure_test_type0)pcl)(0, 1, 2, 3); in main()
Dclosure_fn4.c66 ffi_closure *pcl; in main() local
71 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
73 pcl = &cl; in main()
86 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn0, in main()
89 res = (*((closure_test_type0)pcl)) in main()
Dcls_multi_sshort.c42 ffi_closure *pcl; in main() local
49 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
51 pcl = &cl; in main()
74 CHECK(ffi_prep_closure(pcl, &cif, test_func_gn, NULL) == FFI_OK); in main()
76 res_closure = (*((test_type)pcl))(2, 32765); in main()
Dcls_multi_ushort.c42 ffi_closure *pcl; in main() local
49 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
51 pcl = &cl; in main()
74 CHECK(ffi_prep_closure(pcl, &cif, test_func_gn, NULL) == FFI_OK); in main()
76 res_closure = (*((test_type)pcl))(2, 32765); in main()
Dcls_multi_schar.c42 ffi_closure *pcl; in main() local
49 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
51 pcl = &cl; in main()
74 CHECK(ffi_prep_closure(pcl, &cif, test_func_gn, NULL) == FFI_OK); in main()
76 res_closure = (*((test_type)pcl))(2, 125); in main()
Dclosure_fn5.c65 ffi_closure *pcl; in main() local
69 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
71 pcl = &cl; in main()
88 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn5, in main()
91 res = (*((closure_test_type0)pcl)) in main()
Dclosure_fn1.c47 ffi_closure *pcl; in main() local
52 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
54 pcl = &cl; in main()
79 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn1, in main()
82 res = (*((closure_test_type1)pcl)) in main()
Dclosure_fn3.c48 ffi_closure *pcl; in main() local
53 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
55 pcl = &cl; in main()
80 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn3, in main()
83 res = (*((closure_test_type3)pcl)) in main()
Dclosure_fn2.c47 ffi_closure *pcl; in main() local
52 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
54 pcl = &cl; in main()
79 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn2, in main()
82 res = (*((closure_test_type2)pcl)) in main()
Dclosure_fn6.c56 ffi_closure *pcl; in main() local
61 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
63 pcl = &cl; in main()
88 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn0, in main()
91 res = (*((closure_test_type0)pcl)) in main()
Dclosure_fn0.c55 ffi_closure *pcl; in main() local
60 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
62 pcl = &cl; in main()
87 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn0, in main()
90 res = (*((closure_test_type0)pcl)) in main()
Dcls_multi_sshortchar.c47 ffi_closure *pcl; in main() local
55 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
57 pcl = &cl; in main()
86 CHECK(ffi_prep_closure(pcl, &cif, test_func_gn, NULL) == FFI_OK); in main()
88 res_closure = (*((test_type)pcl))(1, 32765, 127, -128); in main()
Dcls_multi_ushortchar.c47 ffi_closure *pcl; in main() local
55 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
57 pcl = &cl; in main()
86 CHECK(ffi_prep_closure(pcl, &cif, test_func_gn, NULL) == FFI_OK); in main()
88 res_closure = (*((test_type)pcl))(1, 2, 127, 128); in main()
Dcls_1_1byte.c49 ffi_closure *pcl; in main() local
56 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
58 pcl = &cl; in main()
89 CHECK(ffi_prep_closure(pcl, &cif, cls_struct_1_1byte_gn, NULL) == FFI_OK); in main()
91 res_dbl = ((cls_struct_1_1byte(*)(cls_struct_1_1byte, cls_struct_1_1byte))(pcl))(g_dbl, f_dbl); in main()
Dcls_multi_uchar.c53 ffi_closure *pcl; in main() local
60 pcl = allocate_mmap (sizeof(ffi_closure)); in main()
62 pcl = &cl; in main()
91 CHECK(ffi_prep_closure(pcl, &cif, test_func_gn, NULL) == FFI_OK); in main()
93 res_closure = (*((test_type)pcl))(1, 2, 127, 125); in main()
/external/libffi/testsuite/libffi.special/
Dunwindtest.cc56 ffi_closure *pcl; in main() local
59 pcl = (ffi_closure *) allocate_mmap (sizeof(ffi_closure)); in main()
61 pcl = &cl; in main()
69 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn, NULL) == FFI_OK); in main()
73 (*((closure_test_type)(pcl)))(); in main()
107 CHECK(ffi_prep_closure(pcl, &cif, closure_test_fn1, in main()
111 (*((closure_test_type1)pcl)) in main()

123