/external/python/cpython2/Modules/_ctypes/libffi/src/x86/ |
D | ffi.c | 58 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/x86/ |
D | ffi.c | 54 const int cabi = ecif->cif->abi; in ffi_prep_args() 65 if ((ecif->cif->flags == FFI_TYPE_STRUCT in ffi_prep_args() 66 || ecif->cif->flags == FFI_TYPE_MS_STRUCT) in ffi_prep_args() 68 && ((ecif->cif->rtype->size & (1 | 2 | 4 | 8)) == 0) in ffi_prep_args() 86 p_arg = ecif->cif->arg_types; in ffi_prep_args() 90 const int nargs = ecif->cif->nargs - 1; in ffi_prep_args() 98 for (i = ecif->cif->nargs; in ffi_prep_args() 233 ffi_status ffi_prep_cif_machdep(ffi_cif *cif) in ffi_prep_cif_machdep() argument 239 switch (cif->rtype->type) in ffi_prep_cif_machdep() 258 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep() [all …]
|
/external/python/cpython3/Modules/_ctypes/libffi_osx/x86/ |
D | x86-ffi_darwin.c | 49 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_osx/x86/ |
D | x86-ffi_darwin.c | 49 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/vax/ |
D | ffi.c | 61 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/vax/ |
D | ffi.c | 61 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/m68k/ |
D | ffi.c | 49 (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/libffi/src/m68k/ |
D | ffi.c | 49 (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/libffi/src/mips/ |
D | ffi.c | 95 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/mips/ |
D | ffi.c | 95 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/ |
D | ffi.c | 49 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/libffi/src/sparc/ |
D | ffi.c | 70 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/src/sparc/ |
D | ffi.c | 70 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/libffi/src/avr32/ |
D | ffi.c | 80 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/avr32/ |
D | ffi.c | 80 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/cpython3/Modules/_ctypes/libffi_msvc/ |
D | ffi.c | 49 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() 141 if (argp >= stack && (unsigned)(argp - stack) > ecif->cif->bytes) in ffi_prep_args() 164 ffi_status ffi_prep_cif_machdep(ffi_cif *cif) in ffi_prep_cif_machdep() argument 167 switch (cif->rtype->type) in ffi_prep_cif_machdep() 174 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep() 181 if (can_return_struct_as_int(cif->rtype->size)) in ffi_prep_cif_machdep() 182 cif->flags = FFI_TYPE_INT; in ffi_prep_cif_machdep() 183 else if (can_return_struct_as_sint64(cif->rtype->size)) in ffi_prep_cif_machdep() 184 cif->flags = FFI_TYPE_SINT64; in ffi_prep_cif_machdep() [all …]
|
/external/python/cpython2/Modules/_ctypes/libffi/src/metag/ |
D | ffi.c | 47 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/metag/ |
D | ffi.c | 47 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/ |
D | ffi.c | 41 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/libffi/src/xtensa/ |
D | ffi.c | 55 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/xtensa/ |
D | ffi.c | 55 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/arm/ |
D | ffi.c | 137 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/libffi/src/arm/ |
D | ffi.c | 137 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/libffi/src/sh64/ |
D | ffi.c | 69 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/sh64/ |
D | ffi.c | 69 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 …]
|