Searched refs:offsetof (Results 1 - 25 of 568) sorted by relevance

1234567891011>>

/external/libcxx/test/std/language.support/support.types/
H A Doffsetof.pass.cpp16 #ifndef offsetof
17 #error offsetof not defined
27 static_assert(noexcept(offsetof(A, x)), "");
/external/libunwind/src/ia64/
H A Dmk_Gcursor_i.c30 #ifdef offsetof
31 # undef offsetof macro
34 #define offsetof(type,field) ((char *) &((type *) 0)->field - (char *) 0) macro
42 OFFSET("IP_OFF", offsetof (struct cursor, ip));
43 OFFSET("PR_OFF", offsetof (struct cursor, pr));
44 OFFSET("BSP_OFF", offsetof (struct cursor, bsp));
45 OFFSET("PSP_OFF", offsetof (struct cursor, psp));
46 OFFSET("PFS_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_PFS]));
47 OFFSET("RNAT_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_RNAT]));
48 OFFSET("UNAT_LOC_OFF", offsetof (struc
[all...]
/external/clang/test/CodeGen/
H A Darm-aapcs-zerolength-bitfield.c13 static int arr1_offset[(offsetof(struct t1, bar) == 1) ? 0 : -1];
22 static int arr2_offset[(offsetof(struct t2, bar) == 2) ? 0 : -1];
31 static int arr3_offset[(offsetof(struct t3, bar) == 4) ? 0 : -1];
40 static int arr4_offset[(offsetof(struct t4, bar) == 4) ? 0 : -1];
49 static int arr5_offset[(offsetof(struct t5, bar) == 8) ? 0 : -1];
59 static int arr6_offset[(offsetof(struct t6, bar2) == 2) ? 0 : -1];
69 static int arr7_offset[(offsetof(struct t7, bar2) == 3) ? 0 : -1];
79 static int arr8_offset[(offsetof(struct t8, bar2) == 5) ? 0 : -1];
89 static int arr9_offset[(offsetof(struct t9, bar2) == 5) ? 0 : -1];
99 static int arr10_offset[(offsetof(struc
[all...]
H A Darm-apcs-zerolength-bitfield.c17 static int arr1_offset[(offsetof(struct t1, bar) == 4) ? 0 : -1];
26 static int arr2_offset[(offsetof(struct t2, bar) == 4) ? 0 : -1];
35 static int arr3_offset[(offsetof(struct t3, bar) == 4) ? 0 : -1];
44 static int arr4_offset[(offsetof(struct t4, bar) == 4) ? 0 : -1];
53 static int arr5_offset[(offsetof(struct t5, bar) == 4) ? 0 : -1];
63 static int arr6_offset[(offsetof(struct t6, bar2) == 5) ? 0 : -1];
73 static int arr7_offset[(offsetof(struct t7, bar2) == 5) ? 0 : -1];
83 static int arr8_offset[(offsetof(struct t8, bar2) == 5) ? 0 : -1];
93 static int arr9_offset[(offsetof(struct t9, bar2) == 5) ? 0 : -1];
103 static int arr10_offset[(offsetof(struc
[all...]
/external/syslinux/com32/include/
H A Dstddef.h21 #undef offsetof macro
22 #define offsetof(t,m) ((size_t)&((t *)0)->m) macro
30 #define container_of(p, c, m) ((c *)((char *)(p) - offsetof(c,m)))
/external/libunwind/src/coredump/
H A D_UCD_access_reg_linux.c91 [UNW_X86_EAX] = offsetof(struct user_regs_struct, eax) / sizeof(long),
92 [UNW_X86_EDX] = offsetof(struct user_regs_struct, edx) / sizeof(long),
93 [UNW_X86_ECX] = offsetof(struct user_regs_struct, ecx) / sizeof(long),
94 [UNW_X86_EBX] = offsetof(struct user_regs_struct, ebx) / sizeof(long),
95 [UNW_X86_ESI] = offsetof(struct user_regs_struct, esi) / sizeof(long),
96 [UNW_X86_EDI] = offsetof(struct user_regs_struct, edi) / sizeof(long),
97 [UNW_X86_EBP] = offsetof(struct user_regs_struct, ebp) / sizeof(long),
98 [UNW_X86_ESP] = offsetof(struct user_regs_struct, esp) / sizeof(long),
99 [UNW_X86_EIP] = offsetof(struct user_regs_struct, eip) / sizeof(long),
100 [UNW_X86_EFLAGS] = offsetof(struc
[all...]
/external/google-breakpad/src/common/android/
H A Dbreakpad_getcontext_unittest.cc55 offsetof(ucontext_t,uc_mcontext.arm_r0));
60 offsetof(ucontext_t,uc_mcontext.regs[0]));
62 offsetof(ucontext_t,uc_mcontext.sp));
64 offsetof(ucontext_t,uc_mcontext.pc));
66 offsetof(ucontext_t,uc_mcontext.pstate));
68 offsetof(ucontext_t,uc_mcontext.__reserved));
71 offsetof(ucontext_t,uc_mcontext.gregs));
74 offsetof(ucontext_t,uc_mcontext.gregs[REG_##x]))
96 offsetof(ucontext_t,uc_mcontext.fpregs));
99 offsetof(ucontext_
[all...]
/external/clang/test/Sema/
H A Dpragma-pack-2.c13 extern int a0[offsetof(struct s0, f1) == 4 ? 1 : -1];
20 extern int a1[offsetof(struct s1, f1) == 2 ? 1 : -1];
33 extern int a3_0[offsetof(struct s3_0, f1) == 1 ? 1 : -1];
34 extern int a3_1[offsetof(struct s3_1, f1) == 4 ? 1 : -1];
47 extern int a4_0[offsetof(struct s4_0, f1) == 1 ? 1 : -1];
48 extern int a4_1[offsetof(struct s4_1, f1) == 4 ? 1 : -1];
59 extern int s5_0[offsetof(struct s5_0, f1) == 2 ? 1 : -1];
H A Dpragma-align-mac68k.c18 extern int a1_0[offsetof(struct s1, f0) == 0 ? 1 : -1];
19 extern int a1_1[offsetof(struct s1, f1) == 2 ? 1 : -1];
27 extern int a2_0[offsetof(struct s2, f0) == 0 ? 1 : -1];
28 extern int a2_1[offsetof(struct s2, f1) == 2 ? 1 : -1];
36 extern int a3_0[offsetof(struct s3, f0) == 0 ? 1 : -1];
37 extern int a3_1[offsetof(struct s3, f1) == 2 ? 1 : -1];
45 extern int a4_0[offsetof(struct s4, f0) == 0 ? 1 : -1];
46 extern int a4_1[offsetof(struct s4, f1) == 1 ? 1 : -1];
96 extern int a11_0[offsetof(struct s11, f0) == 0 ? 1 : -1];
97 extern int a11_1[offsetof(struc
[all...]
H A Dpragma-pack-5.c38 extern int check[offsetof(struct s3, f4) == 6 ? 1 : -1];
46 extern int check[offsetof(struct s4, f3) == 2 ? 1 : -1];
/external/valgrind/coregrind/
H A Dm_vki.c117 vg_assert(offsetof(t1,sa_handler) == offsetof(t2.ksa_handler));
118 vg_assert(offsetof(t1.sa_tramp) == offsetof(t2.sa_tramp));
119 vg_assert(offsetof(t1.sa_mask) == offsetof(t2.sa_mask));
120 vg_assert(offsetof(t1.sa_flags) == offsetof(t2.sa_flags));
121 vg_assert(offsetof(f1.sa_handler) == offsetof(f
[all...]
/external/clang/test/CodeGenCXX/
H A Daarch64-aapcs-zerolength-bitfield.cpp14 static_assert(offsetof(struct t1, bar) == 1);
23 static_assert(offsetof(struct t2, bar) == 2);
32 static_assert(offsetof(struct t3, bar) == 4);
41 static_assert(offsetof(struct t4, bar) == 8);
50 static_assert(offsetof(struct t5, bar) == 8);
60 static_assert(offsetof(struct t6, bar2) == 2);
70 static_assert(offsetof(struct t7, bar2) == 3);
80 static_assert(offsetof(struct t8, bar2) == 5);
90 static_assert(offsetof(struct t9, bar2) == 9);
100 static_assert(offsetof(struc
[all...]
/external/iptables/libiptc/
H A Dlinux_stddef.h11 #undef offsetof macro
12 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) macro
25 (type *)( (char *)__mptr - offsetof(type,member) );})
/external/syslinux/gpxe/src/include/
H A Dstddef.h12 #undef offsetof macro
13 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) macro
18 (type *)( (char *)__mptr - offsetof(type,member) );})
/external/strace/linux/alpha/
H A Darch_sigreturn.c8 addr += offsetof(struct sigcontext, sc_mask);
/external/strace/linux/ia64/
H A Darch_sigreturn.c4 /* offsetof(struct sigframe, sc) */
8 offsetof(struct sigcontext, sc_mask);
/external/strace/linux/microblaze/
H A Darch_sigreturn.c11 addr += offsetof(struct sigcontext, oldmask);
/external/strace/linux/mips/
H A Darch_sigreturn.c6 * offsetof(struct sigframe, sf_mask) ==
16 * offsetof(struct rt_sigframe, rs_uc) ==
20 offsetof(struct ucontext, uc_sigmask);
/external/strace/linux/tile/
H A Darch_sigreturn.c7 offsetof(struct ucontext, uc_sigmask);
/external/valgrind/memcheck/tests/linux/
H A Dsigqueue.c18 fprintf(stdout, "offsetof(siginfo_t, si_signo) = %zd\n",
19 offsetof(siginfo_t, si_signo));
20 fprintf(stdout, "offsetof(siginfo_t, si_errno) = %zd\n",
21 offsetof(siginfo_t, si_errno));
22 fprintf(stdout, "offsetof(siginfo_t, si_code) = %zd\n",
23 offsetof(siginfo_t, si_code));
24 fprintf(stdout, "offsetof(siginfo_t, _sifields) = %zd\n",
25 offsetof(siginfo_t, _sifields));
/external/libunwind/src/mips/
H A Dgen-offsets.c6 printf ("#define LINUX_UC_" N "_OFF\t0x%X\n", offsetof (ucontext_t, X))
9 printf ("#define LINUX_SC_" N "_OFF\t0x%X\n", offsetof (struct sigcontext, X))
/external/elfutils/libelf/
H A Delf_getident.c57 || (offsetof (struct Elf, state.elf32.ehdr)
58 == offsetof (struct Elf, state.elf64.ehdr))
/external/libchrome/sandbox/linux/bpf_dsl/
H A Dseccomp_macros.h42 #define SECCOMP_NR_IDX (offsetof(struct arch_seccomp_data, nr))
43 #define SECCOMP_ARCH_IDX (offsetof(struct arch_seccomp_data, arch))
44 #define SECCOMP_IP_MSB_IDX (offsetof(struct arch_seccomp_data, \
46 #define SECCOMP_IP_LSB_IDX (offsetof(struct arch_seccomp_data, \
48 #define SECCOMP_ARG_MSB_IDX(nr) (offsetof(struct arch_seccomp_data, args) + \
50 #define SECCOMP_ARG_LSB_IDX(nr) (offsetof(struct arch_seccomp_data, args) + \
104 #define SECCOMP_NR_IDX (offsetof(struct arch_seccomp_data, nr))
105 #define SECCOMP_ARCH_IDX (offsetof(struct arch_seccomp_data, arch))
106 #define SECCOMP_IP_MSB_IDX (offsetof(struct arch_seccomp_data, \
108 #define SECCOMP_IP_LSB_IDX (offsetof(struc
[all...]
/external/strace/tests/
H A Dioctl_dm.c54 ALIGNED_SIZE(offsetof(t_, m_), t_)
66 offsetof(struct dm_ioctl, data);
187 tail_alloc(offsetof(struct dm_ioctl, data));
356 init_s(&s.ioc, sizeof(s), offsetof(struct s, u));
405 init_s(&dm_arg_open1->ioc, offsetof(struct dm_table_open_test, target1),
406 offsetof(struct dm_table_open_test, target1));
420 offsetof(struct dm_table_open_test, target1)
423 offsetof(struct dm_table_open_test, target1)
428 init_s(&dm_arg_open2->ioc, offsetof(struct dm_table_open_test, param1),
429 offsetof(struc
[all...]
/external/strace/tests-m32/
H A Dioctl_dm.c54 ALIGNED_SIZE(offsetof(t_, m_), t_)
66 offsetof(struct dm_ioctl, data);
187 tail_alloc(offsetof(struct dm_ioctl, data));
356 init_s(&s.ioc, sizeof(s), offsetof(struct s, u));
405 init_s(&dm_arg_open1->ioc, offsetof(struct dm_table_open_test, target1),
406 offsetof(struct dm_table_open_test, target1));
420 offsetof(struct dm_table_open_test, target1)
423 offsetof(struct dm_table_open_test, target1)
428 init_s(&dm_arg_open2->ioc, offsetof(struct dm_table_open_test, param1),
429 offsetof(struc
[all...]

Completed in 577 milliseconds

1234567891011>>