Home
last modified time | relevance | path

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

12345678910>>...23

/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/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/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/libffi/src/mips/
Dffi.c96 if ( ecif->cif->rstruct_flag != 0 ) in ffi_prep_args()
98 if ( ecif->cif->rtype->type == FFI_TYPE_STRUCT ) in ffi_prep_args()
108 for (i = 0, p_arg = ecif->cif->arg_types; i < ecif->cif->nargs; i++, p_arg++) in ffi_prep_args()
132 type = (ecif->cif->abi == FFI_N64 in ffi_prep_args()
133 || ecif->cif->abi == FFI_N64_SOFT_FLOAT) in ffi_prep_args()
136 if (i < 8 && (ecif->cif->abi == FFI_N32_SOFT_FLOAT in ffi_prep_args()
137 || ecif->cif->abi == FFI_N64_SOFT_FLOAT)) in ffi_prep_args()
326 static ffi_status ffi_prep_cif_machdep_int(ffi_cif *cif, unsigned nfixedargs) in ffi_prep_cif_machdep_int() argument
328 cif->flags = 0; in ffi_prep_cif_machdep_int()
329 cif->mips_nfixedargs = nfixedargs; in ffi_prep_cif_machdep_int()
[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/cpython3/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/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/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_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 && (unsigned)(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/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/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/cffi/c/libffi_msvc/
Dffi.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()
122 if (argp - stack > (long)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/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/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/libffi/src/or1k/
Dffi.c41 nfixedargs = ecif->cif->nfixedargs; in ffi_prep_args()
42 arg = ecif->cif->arg_types; in ffi_prep_args()
45 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args()
51 for(i=0; i<ecif->cif->nargs; i++) in ffi_prep_args()
119 void ffi_call(ffi_cif *cif, void (*fn)(void), void *rvalue, void **avalue) in ffi_call() argument
127 for(i = 0, arg = cif->arg_types, size=0; i < cif->nargs; i++, arg++) in ffi_call()
139 if (cif->nargs != cif->nfixedargs) in ffi_call()
142 if (cif->rtype->type == FFI_TYPE_STRUCT) in ffi_call()
147 ecif.cif = cif; in ffi_call()
151 switch (cif->abi) in ffi_call()
[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/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/libffi/src/arm/
Dffi.c141 ffi_prep_args_SYSV (ffi_cif *cif, int flags, void *rvalue, in ffi_prep_args_SYSV() argument
144 ffi_type **arg_types = cif->arg_types; in ffi_prep_args_SYSV()
153 for (i = 0, n = cif->nargs; i < n; i++) in ffi_prep_args_SYSV()
162 ffi_prep_args_VFP (ffi_cif *cif, int flags, void *rvalue, in ffi_prep_args_VFP() argument
165 ffi_type **arg_types = cif->arg_types; in ffi_prep_args_VFP()
184 for (i = 0, n = cif->nargs; i < n; i++) in ffi_prep_args_VFP()
191 if (vi < cif->vfp_nargs && is_vfp_type) in ffi_prep_args_VFP()
193 char *vfp_slot = vfp_space + cif->vfp_args[vi++] * 4; in ffi_prep_args_VFP()
234 ffi_prep_cif_machdep (ffi_cif *cif) in ffi_prep_cif_machdep() argument
236 int flags = 0, cabi = cif->abi; 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/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/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_int (ffi_cif *cif, in ffi_call_int() argument
93 ecif.cif = cif; in ffi_call_int()
97 if ((cif->flags & FLAG_RETURNS_SMST) != 0) in ffi_call_int()
101 else if (!rvalue && cif->rtype->type == FFI_TYPE_STRUCT) in ffi_call_int()
[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 …]

12345678910>>...23