/third_party/libffi/src/metag/ |
D | ffi.c | 96 return FFI_ALIGN(MIN(stack - argp, 6*4), 8); in ffi_prep_args() 115 bytes = FFI_ALIGN(bytes, (*ptr)->alignment); in ffi_prep_cif_machdep() 117 bytes += FFI_ALIGN((*ptr)->size, 4); in ffi_prep_cif_machdep() 121 bytes = FFI_ALIGN(bytes, 8); in ffi_prep_cif_machdep() 128 bytes = FFI_ALIGN(bytes, 8); in ffi_prep_cif_machdep() 322 argp = (char *) FFI_ALIGN(argp, alignment); in ffi_prep_incoming_args_SYSV()
|
/third_party/libffi/src/ |
D | raw_api.c | 46 result += FFI_ALIGN (sizeof (void*), FFI_SIZEOF_ARG); in ffi_raw_size() 49 result += FFI_ALIGN ((*at)->size, FFI_SIZEOF_ARG); in ffi_raw_size() 101 raw += FFI_ALIGN ((*tp)->size, FFI_SIZEOF_ARG) / FFI_SIZEOF_ARG; in ffi_raw_to_ptrarray() 126 raw += FFI_ALIGN ((*tp)->size, sizeof (void*)) / sizeof (void*); in ffi_raw_to_ptrarray() 189 raw += FFI_ALIGN ((*tp)->size, FFI_SIZEOF_ARG) / FFI_SIZEOF_ARG; in ffi_ptrarray_to_raw()
|
D | prep_cif.c | 32 #define STACK_ARG_SIZE(x) FFI_ALIGN(x, FFI_SIZEOF_ARG) 61 arg->size = FFI_ALIGN(arg->size, (*ptr)->alignment); in initialize_aggregate() 79 arg->size = FFI_ALIGN (arg->size, arg->alignment); in initialize_aggregate() 188 bytes = (unsigned)FFI_ALIGN(bytes, (*ptr)->alignment); in ffi_prep_cif_core()
|
D | java_raw_api.c | 117 FFI_ALIGN ((*tp)->size, sizeof(ffi_java_raw)) / sizeof(ffi_java_raw); in ffi_java_raw_to_ptrarray() 145 FFI_ALIGN ((*tp)->size, sizeof(ffi_java_raw)) / sizeof(ffi_java_raw); in ffi_java_raw_to_ptrarray() 237 FFI_ALIGN ((*tp)->size, sizeof(ffi_java_raw)) / sizeof(ffi_java_raw); in ffi_java_ptrarray_to_raw()
|
/third_party/libffi/src/powerpc/ |
D | ffi_darwin.c | 259 next_arg = (unsigned long *)FFI_ALIGN((char *)next_arg, (*ptr)->alignment); in ffi_prep_args() 270 size_al = FFI_ALIGN((*ptr)->size, 8); in ffi_prep_args() 356 struct_offset = FFI_ALIGN(struct_offset, p->alignment); in darwin64_struct_size_exceeds_gprs_p() 440 struct_offset = FFI_ALIGN(struct_offset, p->alignment); in darwin64_pass_struct_floats() 531 struct_offset = FFI_ALIGN(struct_offset, p->alignment); in darwin64_struct_floats_to_mem() 608 s->size = FFI_ALIGN(s->size, align) + p->size; in darwin_adjust_aggregate_sizes() 611 s->size = FFI_ALIGN(s->size, s->alignment); in darwin_adjust_aggregate_sizes() 644 s->size = FFI_ALIGN(s->size, align) + p->size; in aix_adjust_aggregate_sizes() 647 s->size = FFI_ALIGN(s->size, s->alignment); in aix_adjust_aggregate_sizes() 813 intarg_count = FFI_ALIGN(intarg_count, 2); in ffi_prep_cif_machdep() [all …]
|
D | ffi_linux64.c | 273 intarg_count = FFI_ALIGN (intarg_count, align); in ffi_prep_cif_linux64_core() 546 next_arg.p = FFI_ALIGN (next_arg.p, 16); in ffi_prep_args64() 658 next_arg.p = FFI_ALIGN (next_arg.p, align); in ffi_prep_args64() 945 pst = (unsigned long *) FFI_ALIGN ((size_t) pst, align); in ffi_closure_helper_LINUX64()
|
/third_party/libffi/src/sparc/ |
D | ffi64.c | 78 size_mask = FFI_ALIGN(size_mask, t->alignment); in ffi_struct_float_mask() 102 size_mask = FFI_ALIGN(size_mask, outer_type->alignment); in ffi_struct_float_mask() 287 bytes = FFI_ALIGN(bytes, a); in ffi_prep_cif_machdep_core() 288 bytes += FFI_ALIGN(z, 8); in ffi_prep_cif_machdep_core() 297 bytes = FFI_ALIGN(bytes, 16); in ffi_prep_cif_machdep_core() 408 argp += FFI_ALIGN(z, 8) / 8; in ffi_prep_args_v9() 428 bytes += FFI_ALIGN (cif->rtype->size, 16); in ffi_call_int() 550 argx = argn + FFI_ALIGN (z, 8) / 8; in ffi_closure_sparc_inner_v9() 564 argn = FFI_ALIGN (argn, 2); in ffi_closure_sparc_inner_v9()
|
D | ffi.c | 156 z = FFI_ALIGN(z, 4); in ffi_prep_cif_machdep() 170 bytes = FFI_ALIGN(bytes, 2 * 4); in ffi_prep_cif_machdep() 296 bytes += FFI_ALIGN (cif->rtype->size, 8); in ffi_call_int()
|
/third_party/libffi/src/x86/ |
D | ffi.c | 58 #define STACK_ALIGN(bytes) FFI_ALIGN (bytes, 16) 146 bytes += FFI_ALIGN (sizeof(void*), FFI_SIZEOF_ARG); in ffi_prep_cif_machdep() 184 bytes = FFI_ALIGN (bytes, t->alignment); in ffi_prep_cif_machdep() 185 bytes += FFI_ALIGN (t->size, FFI_SIZEOF_ARG); in ffi_prep_cif_machdep() 352 size_t za = FFI_ALIGN (z, FFI_SIZEOF_ARG); in ffi_call_int() 383 argp = (char *)FFI_ALIGN (argp, align); in ffi_call_int() 487 size_t za = FFI_ALIGN (z, FFI_SIZEOF_ARG); in ffi_closure_inner() 512 argp = (char *)FFI_ALIGN (argp, align); in ffi_closure_inner() 749 z = FFI_ALIGN (z, FFI_SIZEOF_ARG); in ffi_raw_call()
|
D | ffi64.c | 246 byte_offset = FFI_ALIGN (byte_offset, (*ptr)->alignment); in classify_argument() 539 bytes = FFI_ALIGN (bytes, align); in ffi_prep_cif_machdep() 552 cif->bytes = (unsigned) FFI_ALIGN (bytes, 8); in ffi_prep_cif_machdep() 614 argp = (void *) FFI_ALIGN (argp, align); in ffi_call_int() 811 argp = (void *) FFI_ALIGN (argp, align); in ffi_closure_unix64_inner()
|
/third_party/libffi/src/riscv/ |
D | ffi.c | 123 ret.offset2 = FFI_ALIGN(fields[0]->size, fields[1]->alignment); in struct_passed_as_elements() 241 cb->used_integer = FFI_ALIGN(cb->used_integer, 2); in marshal() 242 cb->used_stack = (size_t *)FFI_ALIGN(cb->used_stack, 2*__SIZEOF_POINTER__); in marshal() 289 cb->used_integer = FFI_ALIGN(cb->used_integer, 2); in unmarshal() 290 cb->used_stack = (size_t *)FFI_ALIGN(cb->used_stack, 2*__SIZEOF_POINTER__); in unmarshal() 337 FFI_ALIGN(2 * sizeof(size_t) * (cif->nargs - 3), STKALIGN); in ffi_call_int() 340 rval_bytes = FFI_ALIGN(cif->rtype->size, STKALIGN); in ffi_call_int() 353 alloc_base = FFI_ALIGN(alloca(alloc_size + STKALIGN - 1), STKALIGN); in ffi_call_int()
|
/third_party/libffi/src/m88k/ |
D | ffi.c | 137 stackp = (char *) FFI_ALIGN(stackp, a); in ffi_prep_args() 180 z = FFI_ALIGN(z, sizeof (int)); in ffi_prep_args() 323 stackp = (char *) FFI_ALIGN(stackp, a); in ffi_prep_closure_args_OBSD() 334 z = FFI_ALIGN(z, sizeof (int)); in ffi_prep_closure_args_OBSD()
|
/third_party/libffi/src/mips/ |
D | ffi.c | 120 argp = (char *) FFI_ALIGN(argp, a); in ffi_prep_args() 251 *loc = FFI_ALIGN(*loc, e->alignment); in calc_n32_struct_flags() 266 *arg_reg = FFI_ALIGN(*loc, FFI_SIZEOF_ARG) / FFI_SIZEOF_ARG; in calc_n32_struct_flags() 481 arg_reg = FFI_ALIGN(arg_reg, 2); in ffi_prep_cif_machdep_int() 880 argn += FFI_ALIGN(arg_types[i]->size, FFI_SIZEOF_ARG) / FFI_SIZEOF_ARG; in ffi_closure_mips_inner_O32() 921 o = FFI_ALIGN(offset, elt_type->alignment); in copy_struct_N32() 1004 argp=(ffi_arg*)FFI_ALIGN(argp,arg_types[i]->alignment); in ffi_closure_mips_inner_N32() 1019 argn = FFI_ALIGN(argn, arg_types[i]->alignment / sizeof(ffi_arg)); in ffi_closure_mips_inner_N32() 1080 argn += FFI_ALIGN(arg_types[i]->size, sizeof(ffi_arg)) / sizeof(ffi_arg); in ffi_closure_mips_inner_N32()
|
/third_party/libffi/src/vax/ |
D | ffi.c | 111 z = FFI_ALIGN(z, sizeof(int)); in ffi_prep_args() 218 z = FFI_ALIGN(z, sizeof (int)); in ffi_prep_closure_elfbsd()
|
/third_party/libffi/src/nios2/ |
D | ffi.c | 104 argp = (char *) FFI_ALIGN (argp, alignment); in ffi_prep_args() 233 argp = (char *) FFI_ALIGN (argp, alignment); in ffi_closure_helper()
|
/third_party/libffi/src/arc/ |
D | ffi.c | 74 argp = (char *) FFI_ALIGN (argp, alignment); in ffi_prep_args() 226 argp = (char *) FFI_ALIGN (argp, alignment); in ffi_closure_inner_ARCompact()
|
/third_party/libffi/src/alpha/ |
D | ffi.c | 101 bytes += FFI_ALIGN(itype->size, FFI_SIZEOF_ARG); in ffi_prep_cif_machdep() 288 argn += FFI_ALIGN(size, FFI_SIZEOF_ARG) / FFI_SIZEOF_ARG; in ffi_call_int() 424 argn += FFI_ALIGN(size, FFI_SIZEOF_ARG) / FFI_SIZEOF_ARG; in ffi_closure_osf_inner()
|
/third_party/libffi/src/xtensa/ |
D | ffi.c | 92 cif->bytes = FFI_ALIGN(cif->bytes, 16); in ffi_prep_cif_machdep() 208 alloc = alloca(FFI_ALIGN(rsize, 4)); in ffi_call()
|
/third_party/libffi/src/m68k/ |
D | ffi.c | 108 z = FFI_ALIGN(z, sizeof(int)); in ffi_prep_args() 300 z = FFI_ALIGN(z, sizeof(int)); in ffi_prep_incoming_args_SYSV()
|
/third_party/libffi/src/cris/ |
D | ffi.c | 32 #define STACK_ARG_SIZE(x) FFI_ALIGN(x, FFI_SIZEOF_ARG) 193 bytes = FFI_ALIGN (bytes, (*ptr)->alignment); in ffi_prep_cif_core()
|
/third_party/libffi/include/ |
D | ffi_common.h | 78 #define FFI_ALIGN(v, a) (((((size_t) (v))-1) | ((a)-1))+1) macro
|
/third_party/libffi/src/arm/ |
D | ffi.c | 74 return (void *) FFI_ALIGN (p, alignment); in ffi_align() 130 return FFI_ALIGN (z, 4); in ffi_put_arg() 311 bytes = FFI_ALIGN (bytes, 8); in ffi_prep_cif_machdep()
|
/third_party/libffi/src/m32r/ |
D | ffi.c | 64 argp = (char *) FFI_ALIGN (argp, (*p_arg)->alignment); in ffi_prep_args()
|
/third_party/libffi/src/frv/ |
D | ffi.c | 121 cif->bytes = FFI_ALIGN (cif->bytes, 8); in ffi_prep_cif_machdep()
|
/third_party/libffi/src/moxie/ |
D | ffi.c | 114 cif->bytes = FFI_ALIGN (cif->bytes, 8); in ffi_prep_cif_machdep()
|