Home
last modified time | relevance | path

Searched refs:cif (Results 1 – 25 of 210) sorted by relevance

123456789

/external/python/cpython2/Modules/_ctypes/libffi/src/x86/
Dffi.c58 int cabi = ecif->cif->abi; in ffi_prep_args()
63 if ((ecif->cif->flags == FFI_TYPE_STRUCT in ffi_prep_args()
64 || ecif->cif->flags == FFI_TYPE_MS_STRUCT) in ffi_prep_args()
66 && (ecif->cif->rtype->size != 1 && ecif->cif->rtype->size != 2 in ffi_prep_args()
67 && ecif->cif->rtype->size != 4 && ecif->cif->rtype->size != 8) in ffi_prep_args()
87 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
225 ffi_status ffi_prep_cif_machdep(ffi_cif *cif) in ffi_prep_cif_machdep() argument
231 switch (cif->rtype->type) in ffi_prep_cif_machdep()
250 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep()
257 cif->flags = FFI_TYPE_SINT64; in ffi_prep_cif_machdep()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/vax/
Dffi.c61 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_args()
62 && !ecif->cif->flags) in ffi_prep_args()
69 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
122 ffi_prep_cif_machdep (ffi_cif *cif) in ffi_prep_cif_machdep() argument
125 switch (cif->rtype->type) in ffi_prep_cif_machdep()
128 cif->flags = 0; in ffi_prep_cif_machdep()
132 if (cif->rtype->elements[0]->type == FFI_TYPE_STRUCT && in ffi_prep_cif_machdep()
133 cif->rtype->elements[1]) in ffi_prep_cif_machdep()
135 cif->flags = 0; in ffi_prep_cif_machdep()
139 if (cif->rtype->size == sizeof (char)) in ffi_prep_cif_machdep()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi_osx/x86/
Dx86-ffi_darwin.c49 if (ecif->cif->flags == FFI_TYPE_STRUCT) in ffi_prep_args()
57 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
117 ffi_status ffi_prep_cif_machdep(ffi_cif *cif) in ffi_prep_cif_machdep() argument
120 switch (cif->rtype->type) in ffi_prep_cif_machdep()
135 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep()
139 cif->flags = FFI_TYPE_SINT64; in ffi_prep_cif_machdep()
144 if (cif->rtype->size == 1) in ffi_prep_cif_machdep()
146 cif->flags = FFI_TYPE_SINT8; /* same as char size */ in ffi_prep_cif_machdep()
148 else if (cif->rtype->size == 2) in ffi_prep_cif_machdep()
150 cif->flags = FFI_TYPE_SINT16; /* same as short size */ in ffi_prep_cif_machdep()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/m68k/
Dffi.c49 (ecif->cif->rtype->type == FFI_TYPE_LONGDOUBLE) || in ffi_prep_args()
51 (((ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args()
52 && !ecif->cif->flags))) in ffi_prep_args()
59 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
131 ffi_prep_cif_machdep (ffi_cif *cif) in ffi_prep_cif_machdep() argument
134 switch (cif->rtype->type) in ffi_prep_cif_machdep()
137 cif->flags = 0; in ffi_prep_cif_machdep()
141 if (cif->rtype->elements[0]->type == FFI_TYPE_STRUCT && in ffi_prep_cif_machdep()
142 cif->rtype->elements[1]) in ffi_prep_cif_machdep()
144 cif->flags = 0; in ffi_prep_cif_machdep()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/mips/
Dffi.c95 if ( ecif->cif->rstruct_flag != 0 ) in ffi_prep_args()
97 if ( ecif->cif->rtype->type == FFI_TYPE_STRUCT ) in ffi_prep_args()
107 for (i = 0, p_arg = ecif->cif->arg_types; i < ecif->cif->nargs; i++, p_arg++) in ffi_prep_args()
131 type = (ecif->cif->abi == FFI_N64 in ffi_prep_args()
132 || ecif->cif->abi == FFI_N64_SOFT_FLOAT) in ffi_prep_args()
135 if (i < 8 && (ecif->cif->abi == FFI_N32_SOFT_FLOAT in ffi_prep_args()
136 || ecif->cif->abi == FFI_N64_SOFT_FLOAT)) in ffi_prep_args()
325 ffi_status ffi_prep_cif_machdep(ffi_cif *cif) in ffi_prep_cif_machdep() argument
327 cif->flags = 0; in ffi_prep_cif_machdep()
334 if (cif->rtype->type != FFI_TYPE_STRUCT && cif->abi == FFI_O32) in ffi_prep_cif_machdep()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/avr32/
Dffi.c80 if(ecif->cif->flags == FFI_TYPE_STRUCT) in ffi_prep_args()
86 for(i = 0, p_arg = ecif->cif->arg_types; i < ecif->cif->nargs; in ffi_prep_args()
177 ffi_status ffi_prep_cif_machdep(ffi_cif *cif) in ffi_prep_cif_machdep() argument
182 cif->bytes = (cif->bytes + 7) & ~7; in ffi_prep_cif_machdep()
185 cif->rstruct_flag = 0; in ffi_prep_cif_machdep()
188 switch(cif->rtype->type) in ffi_prep_cif_machdep()
192 cif->flags = (unsigned)FFI_TYPE_UINT8; in ffi_prep_cif_machdep()
196 cif->flags = (unsigned)FFI_TYPE_UINT16; in ffi_prep_cif_machdep()
202 cif->flags = (unsigned)FFI_TYPE_UINT32; in ffi_prep_cif_machdep()
207 cif->flags = (unsigned)FFI_TYPE_UINT64; in ffi_prep_cif_machdep()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/sparc/
Dffi.c70 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; i; i--, p_arg++) in ffi_prep_args_v8()
150 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT && in ffi_prep_args_v9()
151 ecif->cif->rtype->size > 32) in ffi_prep_args_v9()
158 for (i = 0, p_arg = ecif->cif->arg_types; i < ecif->cif->nargs; in ffi_prep_args_v9()
252 ffi_status ffi_prep_cif_machdep(ffi_cif *cif) in ffi_prep_cif_machdep() argument
256 if (cif->abi != FFI_V9) in ffi_prep_cif_machdep()
263 if (cif->rtype->type != FFI_TYPE_STRUCT) in ffi_prep_cif_machdep()
264 cif->bytes += wordsize; in ffi_prep_cif_machdep()
269 if (cif->bytes < 4*6+4) in ffi_prep_cif_machdep()
270 cif->bytes = 4*6+4; in ffi_prep_cif_machdep()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi_msvc/
Dffi.c49 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args()
57 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
122 if (argp - stack > ecif->cif->bytes) in ffi_prep_args()
130 ffi_status ffi_prep_cif_machdep(ffi_cif *cif) in ffi_prep_cif_machdep() argument
133 switch (cif->rtype->type) in ffi_prep_cif_machdep()
140 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep()
147 if (cif->rtype->size <= 4) in ffi_prep_cif_machdep()
148 cif->flags = FFI_TYPE_INT; in ffi_prep_cif_machdep()
149 else if (cif->rtype->size <= 8) in ffi_prep_cif_machdep()
150 cif->flags = FFI_TYPE_SINT64; in ffi_prep_cif_machdep()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/metag/
Dffi.c47 if ( ecif->cif->flags == FFI_TYPE_STRUCT ) { in ffi_prep_args()
55 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; (i != 0); i--, p_arg++, p_argv++) in ffi_prep_args()
100 ffi_status ffi_prep_cif_machdep(ffi_cif *cif) in ffi_prep_cif_machdep() argument
105 for (ptr = cif->arg_types, i = cif->nargs; i > 0; i--, ptr++) { in ffi_prep_cif_machdep()
124 if (cif->rtype->type == FFI_TYPE_STRUCT) { in ffi_prep_cif_machdep()
131 cif->bytes = bytes; in ffi_prep_cif_machdep()
134 switch (cif->rtype->type) { in ffi_prep_cif_machdep()
138 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep()
142 cif->flags = (unsigned) FFI_TYPE_SINT64; in ffi_prep_cif_machdep()
146 if (cif->rtype->size <= 4) in ffi_prep_cif_machdep()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/xtensa/
Dffi.c55 ffi_status ffi_prep_cif_machdep(ffi_cif *cif) in ffi_prep_cif_machdep() argument
57 switch(cif->rtype->type) { in ffi_prep_cif_machdep()
62 cif->flags = cif->rtype->type; in ffi_prep_cif_machdep()
66 cif->flags = FFI_TYPE_UINT32; in ffi_prep_cif_machdep()
71 cif->flags = FFI_TYPE_UINT64; // cif->rtype->type; in ffi_prep_cif_machdep()
74 cif->flags = FFI_TYPE_STRUCT; //_REGS; in ffi_prep_cif_machdep()
76 if (cif->rtype->size > 4 * 4) { in ffi_prep_cif_machdep()
79 cif->flags = FFI_TYPE_STRUCT; in ffi_prep_cif_machdep()
80 cif->bytes += 8; in ffi_prep_cif_machdep()
85 cif->flags = FFI_TYPE_UINT32; in ffi_prep_cif_machdep()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/sh64/
Dffi.c69 if (return_type (ecif->cif->rtype) == FFI_TYPE_STRUCT) in ffi_prep_args()
75 avn = ecif->cif->nargs; in ffi_prep_args()
78 for (i = 0, p_arg = ecif->cif->arg_types; i < avn; i++, p_arg++, p_argv++) in ffi_prep_args()
156 ffi_status ffi_prep_cif_machdep(ffi_cif *cif) in ffi_prep_cif_machdep() argument
165 greg = (return_type (cif->rtype) == FFI_TYPE_STRUCT ? 1 : 0); in ffi_prep_cif_machdep()
167 cif->flags2 = 0; in ffi_prep_cif_machdep()
169 for (i = j = 0; i < cif->nargs; i++) in ffi_prep_cif_machdep()
171 type = (cif->arg_types)[i]->type; in ffi_prep_cif_machdep()
176 cif->bytes += sizeof (UINT64) - sizeof (float); in ffi_prep_cif_machdep()
186 cif->flags2 += ((cif->arg_types)[i]->type) << (2 * j++); in ffi_prep_cif_machdep()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/arm/
Dffi.c137 if ( ecif->cif->flags == FFI_TYPE_STRUCT ) { in ffi_prep_args_SYSV()
144 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args_SYSV()
166 FFI_ASSERT(ecif->cif->abi == FFI_VFP); in ffi_prep_args_VFP()
176 if ( ecif->cif->flags == FFI_TYPE_STRUCT ) { in ffi_prep_args_VFP()
183 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args_VFP()
190 if(vi < ecif->cif->vfp_nargs && is_vfp_type) in ffi_prep_args_VFP()
192 char *vfp_slot = (char *)(vfp_space + ecif->cif->vfp_args[vi++]); in ffi_prep_args_VFP()
230 return ecif->cif->vfp_used; in ffi_prep_args_VFP()
234 ffi_status ffi_prep_cif_machdep(ffi_cif *cif) in ffi_prep_cif_machdep() argument
240 cif->bytes = (cif->bytes + 7) & ~7; in ffi_prep_cif_machdep()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/moxie/
Dffi.c46 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args()
52 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
107 ffi_status ffi_prep_cif_machdep(ffi_cif *cif) in ffi_prep_cif_machdep() argument
109 if (cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_cif_machdep()
110 cif->flags = -1; in ffi_prep_cif_machdep()
112 cif->flags = cif->rtype->size; in ffi_prep_cif_machdep()
114 cif->bytes = ALIGN (cif->bytes, 8); in ffi_prep_cif_machdep()
125 void ffi_call(ffi_cif *cif, in ffi_call() argument
132 ecif.cif = cif; in ffi_call()
139 (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/m88k/
Dffi.c86 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_args()
87 && !ecif->cif->flags) in ffi_prep_args()
94 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; i != 0; i--, p_arg++) in ffi_prep_args()
200 ffi_prep_cif_machdep (ffi_cif *cif) in ffi_prep_cif_machdep() argument
203 switch (cif->rtype->type) in ffi_prep_cif_machdep()
206 cif->flags = 0; in ffi_prep_cif_machdep()
210 if (cif->rtype->size == sizeof (int) && in ffi_prep_cif_machdep()
211 cif->rtype->alignment == sizeof (int)) in ffi_prep_cif_machdep()
212 cif->flags = CIF_FLAGS_INT; in ffi_prep_cif_machdep()
214 cif->flags = 0; in ffi_prep_cif_machdep()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/microblaze/
Dffi.c51 if (ecif == NULL || ecif->cif == NULL) { in ffi_prep_args()
55 if ((ecif->cif->rtype != NULL) && in ffi_prep_args()
56 (ecif->cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_prep_args()
70 for (i = 0, p_arg = ecif->cif->arg_types; i < ecif->cif->nargs; in ffi_prep_args()
138 ffi_status ffi_prep_cif_machdep(ffi_cif* cif) in ffi_prep_cif_machdep() argument
141 switch (cif->abi) in ffi_prep_cif_machdep()
151 void ffi_call(ffi_cif* cif, void (*fn)(void), void* rvalue, void** avalue) in ffi_call() argument
154 ecif.cif = cif; in ffi_call()
159 if ((rvalue == NULL) && (cif->rtype->type == FFI_TYPE_STRUCT)) { in ffi_call()
160 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi_arm_wince/
Dffi.c50 if ( ecif->cif->rtype->type == FFI_TYPE_STRUCT ) { in ffi_prep_args()
57 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
120 ffi_status ffi_prep_cif_machdep(ffi_cif *cif) in ffi_prep_cif_machdep() argument
123 switch (cif->rtype->type) in ffi_prep_cif_machdep()
130 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep()
134 cif->flags = FFI_TYPE_SINT64; in ffi_prep_cif_machdep()
138 cif->flags = FFI_TYPE_INT; in ffi_prep_cif_machdep()
156 int ffi_call(/*@dependent@*/ ffi_cif *cif, in ffi_call() argument
163 ecif.cif = cif; in ffi_call()
170 (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/cris/
Dffi.c82 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
106 uiLocOnStack = 4 * ecif->cif->nargs + struct_count; in ffi_prep_args()
157 ffi_prep_cif_core (ffi_cif * cif, in ffi_prep_cif_core() argument
166 FFI_ASSERT (cif != NULL); in ffi_prep_cif_core()
171 cif->abi = abi; in ffi_prep_cif_core()
172 cif->arg_types = atypes; in ffi_prep_cif_core()
173 cif->nargs = ntotalargs; in ffi_prep_cif_core()
174 cif->rtype = rtype; in ffi_prep_cif_core()
176 cif->flags = 0; in ffi_prep_cif_core()
178 if ((cif->rtype->size == 0) in ffi_prep_cif_core()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/nios2/
Dffi.c60 ffi_status ffi_prep_cif_machdep (ffi_cif *cif) in ffi_prep_cif_machdep() argument
66 if (cif->bytes < 16) in ffi_prep_cif_machdep()
67 cif->bytes = 16; in ffi_prep_cif_machdep()
69 cif->bytes = (cif->bytes + 3) & ~3; in ffi_prep_cif_machdep()
88 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_args()
89 && ecif->cif->rtype->size > 8) in ffi_prep_args()
95 for (i = 0; i < ecif->cif->nargs; i++) in ffi_prep_args()
98 ffi_type *atype = ecif->cif->arg_types[i]; in ffi_prep_args()
150 void ffi_call (ffi_cif *cif, void (*fn) (void), void *rvalue, void **avalue) in ffi_call() argument
159 int bigret = (cif->rtype->type == FFI_TYPE_STRUCT in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/arc/
Dffi.c57 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args()
65 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
134 ffi_prep_cif_machdep (ffi_cif * cif) in ffi_prep_cif_machdep() argument
137 switch (cif->rtype->type) in ffi_prep_cif_machdep()
140 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep()
144 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep()
150 cif->flags = FFI_TYPE_DOUBLE; in ffi_prep_cif_machdep()
155 cif->flags = FFI_TYPE_INT; in ffi_prep_cif_machdep()
167 ffi_call (ffi_cif * cif, void (*fn) (void), void *rvalue, void **avalue) in ffi_call() argument
171 ecif.cif = cif; in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/alpha/
Dffi.c49 ffi_prep_cif_machdep(ffi_cif *cif) in ffi_prep_cif_machdep() argument
53 if (cif->bytes < 6*FFI_SIZEOF_ARG) in ffi_prep_cif_machdep()
54 cif->bytes = 6*FFI_SIZEOF_ARG; in ffi_prep_cif_machdep()
57 switch (cif->rtype->type) in ffi_prep_cif_machdep()
62 cif->flags = cif->rtype->type; in ffi_prep_cif_machdep()
67 cif->flags = FFI_TYPE_STRUCT; in ffi_prep_cif_machdep()
71 cif->flags = FFI_TYPE_INT; in ffi_prep_cif_machdep()
80 ffi_call(ffi_cif *cif, void (*fn)(void), void *rvalue, void **avalue) in ffi_call() argument
88 if (rvalue == NULL && cif->flags == FFI_TYPE_STRUCT) in ffi_call()
89 rvalue = alloca(cif->rtype->size); in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/m32r/
Dffi.c47 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT && ecif->cif->rtype->size > 8) in ffi_prep_args()
53 avn = ecif->cif->nargs; in ffi_prep_args()
56 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
140 ffi_prep_cif_machdep(ffi_cif *cif) in ffi_prep_cif_machdep() argument
143 switch (cif->rtype->type) in ffi_prep_cif_machdep()
146 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep()
150 if (cif->rtype->size <= 4) in ffi_prep_cif_machdep()
151 cif->flags = FFI_TYPE_INT; in ffi_prep_cif_machdep()
153 else if (cif->rtype->size <= 8) in ffi_prep_cif_machdep()
154 cif->flags = FFI_TYPE_DOUBLE; in ffi_prep_cif_machdep()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/
Dprep_cif.c107 ffi_status FFI_HIDDEN ffi_prep_cif_core(ffi_cif *cif, ffi_abi abi, in ffi_prep_cif_core() argument
117 FFI_ASSERT(cif != NULL); in ffi_prep_cif_core()
124 cif->abi = abi; in ffi_prep_cif_core()
125 cif->arg_types = atypes; in ffi_prep_cif_core()
126 cif->nargs = ntotalargs; in ffi_prep_cif_core()
127 cif->rtype = rtype; in ffi_prep_cif_core()
129 cif->flags = 0; in ffi_prep_cif_core()
136 if ((cif->rtype->size == 0) && (initialize_aggregate(cif->rtype) != FFI_OK)) in ffi_prep_cif_core()
140 FFI_ASSERT_VALID_TYPE(cif->rtype); in ffi_prep_cif_core()
145 if (cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_cif_core()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/sh/
Dffi.c127 if (return_type (ecif->cif->rtype) == FFI_TYPE_STRUCT) in ffi_prep_args()
138 avn = ecif->cif->nargs; in ffi_prep_args()
141 for (i = 0, p_arg = ecif->cif->arg_types; i < avn; i++, p_arg++, p_argv++) in ffi_prep_args()
230 for (i = 0, p_arg = ecif->cif->arg_types; i < avn; i++, p_arg++, p_argv++) in ffi_prep_args()
322 ffi_status ffi_prep_cif_machdep(ffi_cif *cif) in ffi_prep_cif_machdep() argument
332 cif->flags = 0; in ffi_prep_cif_machdep()
334 greg = ((return_type (cif->rtype) == FFI_TYPE_STRUCT) && in ffi_prep_cif_machdep()
338 for (i = j = 0; i < cif->nargs && j < 12; i++) in ffi_prep_cif_machdep()
340 type = (cif->arg_types)[i]->type; in ffi_prep_cif_machdep()
347 cif->flags += ((cif->arg_types)[i]->type) << (2 * j); in ffi_prep_cif_machdep()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/frv/
Dffi.c48 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
114 ffi_status ffi_prep_cif_machdep(ffi_cif *cif) in ffi_prep_cif_machdep() argument
116 if (cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_cif_machdep()
117 cif->flags = -1; in ffi_prep_cif_machdep()
119 cif->flags = cif->rtype->size; in ffi_prep_cif_machdep()
121 cif->bytes = ALIGN (cif->bytes, 8); in ffi_prep_cif_machdep()
132 void ffi_call(ffi_cif *cif, in ffi_call() argument
139 ecif.cif = cif; in ffi_call()
146 (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_call()
148 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/powerpc/
Dffi.c52 ffi_prep_cif_machdep (ffi_cif *cif) in ffi_prep_cif_machdep() argument
55 return ffi_prep_cif_linux64 (cif); in ffi_prep_cif_machdep()
57 return ffi_prep_cif_sysv (cif); in ffi_prep_cif_machdep()
62 ffi_prep_cif_machdep_var (ffi_cif *cif, in ffi_prep_cif_machdep_var() argument
67 return ffi_prep_cif_linux64_var (cif, nfixedargs, ntotalargs); in ffi_prep_cif_machdep_var()
69 return ffi_prep_cif_sysv (cif); in ffi_prep_cif_machdep_var()
74 ffi_call(ffi_cif *cif, void (*fn)(void), void *rvalue, void **avalue) in ffi_call() argument
88 ecif.cif = cif; in ffi_call()
92 if ((cif->flags & FLAG_RETURNS_SMST) != 0) in ffi_call()
96 else if (!rvalue && cif->rtype->type == FFI_TYPE_STRUCT) in ffi_call()
[all …]

123456789