Home
last modified time | relevance | path

Searched refs:_Static_assert (Results 1 – 25 of 91) sorted by relevance

1234

/freebsd-12.1/sys/contrib/cloudabi/
H A Dcloudabi64_types.h43 _Static_assert(sizeof(cloudabi64_auxv_t) == 16, "Incorrect layout");
44 _Static_assert(_Alignof(cloudabi64_auxv_t) == 8, "Incorrect layout");
52 _Static_assert(sizeof(cloudabi64_ciovec_t) == 16, "Incorrect layout");
53 _Static_assert(_Alignof(cloudabi64_ciovec_t) == 8, "Incorrect layout");
61 _Static_assert(sizeof(cloudabi64_iovec_t) == 16, "Incorrect layout");
62 _Static_assert(_Alignof(cloudabi64_iovec_t) == 8, "Incorrect layout");
78 _Static_assert(sizeof(cloudabi64_recv_in_t) == 40, "Incorrect layout");
106 _Static_assert(sizeof(cloudabi64_send_in_t) == 40, "Incorrect layout");
113 _Static_assert(sizeof(cloudabi64_send_out_t) == 8, "Incorrect layout");
171 _Static_assert(sizeof(cloudabi64_tcb_t) == 8, "Incorrect layout");
[all …]
H A Dcloudabi32_types.h43 _Static_assert(sizeof(cloudabi32_auxv_t) == 8, "Incorrect layout");
44 _Static_assert(_Alignof(cloudabi32_auxv_t) == 4, "Incorrect layout");
52 _Static_assert(sizeof(cloudabi32_ciovec_t) == 8, "Incorrect layout");
53 _Static_assert(_Alignof(cloudabi32_ciovec_t) == 4, "Incorrect layout");
61 _Static_assert(sizeof(cloudabi32_iovec_t) == 8, "Incorrect layout");
62 _Static_assert(_Alignof(cloudabi32_iovec_t) == 4, "Incorrect layout");
78 _Static_assert(sizeof(cloudabi32_recv_in_t) == 20, "Incorrect layout");
106 _Static_assert(sizeof(cloudabi32_send_in_t) == 20, "Incorrect layout");
113 _Static_assert(sizeof(cloudabi32_send_out_t) == 4, "Incorrect layout");
171 _Static_assert(sizeof(cloudabi32_tcb_t) == 4, "Incorrect layout");
[all …]
H A Dcloudabi_types_common.h353 _Static_assert(sizeof(cloudabi_dirent_t) == 24, "Incorrect layout");
354 _Static_assert(_Alignof(cloudabi_dirent_t) == 8, "Incorrect layout");
382 _Static_assert(sizeof(cloudabi_event_t) == 32, "Incorrect layout");
383 _Static_assert(_Alignof(cloudabi_event_t) == 8, "Incorrect layout");
395 _Static_assert(sizeof(cloudabi_fdstat_t) == 24, "Incorrect layout");
396 _Static_assert(_Alignof(cloudabi_fdstat_t) == 8, "Incorrect layout");
416 _Static_assert(sizeof(cloudabi_filestat_t) == 56, "Incorrect layout");
417 _Static_assert(_Alignof(cloudabi_filestat_t) == 8, "Incorrect layout");
423 _Static_assert(offsetof(cloudabi_lookup_t, fd) == 0, "Incorrect layout");
425 _Static_assert(sizeof(cloudabi_lookup_t) == 8, "Incorrect layout");
[all …]
/freebsd-12.1/lib/libkvm/
H A Dkvm_arm.h93 _Static_assert(PAGE_SHIFT == ARM_PAGE_SHIFT, "PAGE_SHIFT mismatch");
94 _Static_assert(PAGE_SIZE == ARM_PAGE_SIZE, "PAGE_SIZE mismatch");
95 _Static_assert(PAGE_MASK == ARM_PAGE_MASK, "PAGE_MASK mismatch");
97 _Static_assert(L1_S_SIZE == ARM_L1_S_SIZE, "L1_S_SIZE mismatch");
101 _Static_assert(L2_L_SIZE == ARM_L2_L_SIZE, "L2_L_SIZE mismatch");
105 _Static_assert(L2_S_SIZE == ARM_L2_S_SIZE, "L2_S_SIZE mismatch");
110 _Static_assert(L1_TYPE_C == ARM_L1_TYPE_C, "L1_TYPE_C mismatch");
111 _Static_assert(L1_TYPE_S == ARM_L1_TYPE_S, "L1_TYPE_S mismatch");
116 _Static_assert(L2_TYPE_L == ARM_L2_TYPE_L, "L2_TYPE_L mismatch");
117 _Static_assert(L2_TYPE_S == ARM_L2_TYPE_S, "L2_TYPE_S mismatch");
[all …]
H A Dkvm_riscv.h64 _Static_assert(sizeof(pt_entry_t) == sizeof(riscv_pt_entry_t),
72 _Static_assert(L3_SIZE == RISCV_L3_SIZE, "L3_SIZE mismatch");
76 _Static_assert(PTE_SW_MANAGED == RISCV_PTE_SW_MANAGED,
79 _Static_assert(PTE_D == RISCV_PTE_D, "PTE_D mismatch");
80 _Static_assert(PTE_A == RISCV_PTE_A, "PTE_A mismatch");
81 _Static_assert(PTE_G == RISCV_PTE_G, "PTE_G mismatch");
82 _Static_assert(PTE_U == RISCV_PTE_U, "PTE_U mismatch");
83 _Static_assert(PTE_X == RISCV_PTE_X, "PTE_X mismatch");
84 _Static_assert(PTE_W == RISCV_PTE_W, "PTE_W mismatch");
85 _Static_assert(PTE_R == RISCV_PTE_R, "PTE_R mismatch");
[all …]
H A Dkvm_amd64.h67 _Static_assert(NPTEPG == AMD64_NPTEPG, "NPTEPG mismatch");
71 _Static_assert(NPDEPG == AMD64_NPDEPG, "NPDEPG mismatch");
72 _Static_assert(PDRSHIFT == AMD64_PDRSHIFT, "PDRSHIFT mismatch");
73 _Static_assert(NBPDR == AMD64_NBPDR, "NBPDR mismatch");
74 _Static_assert(PDRMASK == AMD64_PDRMASK, "PDRMASK mismatch");
75 _Static_assert(NPDPEPG == AMD64_NPDPEPG, "NPDPEPG mismatch");
76 _Static_assert(PDPSHIFT == AMD64_PDPSHIFT, "PDPSHIFT mismatch");
77 _Static_assert(NBPDP == AMD64_NBPDP, "NBPDP mismatch");
78 _Static_assert(PDPMASK == AMD64_PDPMASK, "PDPMASK mismatch");
82 _Static_assert(PG_V == AMD64_PG_V, "PG_V mismatch");
[all …]
H A Dkvm_sparc64.h94 _Static_assert(PAGE_SHIFT == SPARC64_PAGE_SHIFT, "PAGE_SHIFT mismatch");
95 _Static_assert(PAGE_SIZE == SPARC64_PAGE_SIZE, "PAGE_SIZE mismatch");
96 _Static_assert(PAGE_MASK == SPARC64_PAGE_MASK, "PAGE_MASK mismatch");
97 _Static_assert(VM_MIN_DIRECT_ADDRESS == SPARC64_MIN_DIRECT_ADDRESS,
99 _Static_assert(TLB_DIRECT_ADDRESS_BITS == SPARC64_DIRECT_ADDRESS_BITS,
101 _Static_assert(TLB_DIRECT_ADDRESS_MASK == SPARC64_DIRECT_ADDRESS_MASK,
103 _Static_assert(TTE_SHIFT == SPARC64_TTE_SHIFT, "TTE_SHIFT mismatch");
104 _Static_assert(TD_SIZE_SHIFT == SPARC64_TD_SIZE_SHIFT,
106 _Static_assert(TD_PA_SHIFT == SPARC64_TD_PA_SHIFT,
112 _Static_assert(TD_V == SPARC64_TD_V, "TD_V mismatch");
[all …]
H A Dkvm_mips.h87 _Static_assert(PAGE_SHIFT == MIPS_PAGE_SHIFT, "PAGE_SHIFT mismatch");
88 _Static_assert(PAGE_SIZE == MIPS_PAGE_SIZE, "PAGE_SIZE mismatch");
89 _Static_assert(PAGE_MASK == MIPS_PAGE_MASK, "PAGE_MASK mismatch");
91 _Static_assert((uint64_t)MIPS_KSEG0_START == MIPS64_KSEG0_START,
93 _Static_assert((uint64_t)MIPS_KSEG0_END == MIPS64_KSEG0_END,
95 _Static_assert((uint64_t)MIPS_KSEG1_START == MIPS64_KSEG1_START,
97 _Static_assert((uint64_t)MIPS_KSEG1_END == MIPS64_KSEG1_END,
100 _Static_assert((uint32_t)MIPS_KSEG0_START == MIPS32_KSEG0_START,
102 _Static_assert((uint32_t)MIPS_KSEG0_END == MIPS32_KSEG0_END,
104 _Static_assert((uint32_t)MIPS_KSEG1_START == MIPS32_KSEG1_START,
[all …]
H A Dkvm_i386.h67 _Static_assert(PAGE_SHIFT == I386_PAGE_SHIFT, "PAGE_SHIFT mismatch");
68 _Static_assert(PAGE_SIZE == I386_PAGE_SIZE, "PAGE_SIZE mismatch");
69 _Static_assert(PAGE_MASK == I386_PAGE_MASK, "PAGE_MASK mismatch");
70 _Static_assert(NPTEPG == I386_NPTEPG, "NPTEPG mismatch");
71 _Static_assert(PDRSHIFT == I386_PDRSHIFT, "PDRSHIFT mismatch");
72 _Static_assert(NBPDR == I386_NBPDR, "NBPDR mismatch");
74 _Static_assert(PG_V == I386_PG_V, "PG_V mismatch");
75 _Static_assert(PG_PS == I386_PG_PS, "PG_PS mismatch");
76 _Static_assert((u_int)PG_FRAME == I386_PG_FRAME, "PG_FRAME mismatch");
77 _Static_assert(PG_PS_FRAME == I386_PG_PS_FRAME, "PG_PS_FRAME mismatch");
H A Dkvm_aarch64.h57 _Static_assert(PAGE_SHIFT == AARCH64_PAGE_SHIFT, "PAGE_SHIFT mismatch");
58 _Static_assert(PAGE_SIZE == AARCH64_PAGE_SIZE, "PAGE_SIZE mismatch");
59 _Static_assert(PAGE_MASK == AARCH64_PAGE_MASK, "PAGE_MASK mismatch");
60 _Static_assert(ATTR_MASK == AARCH64_ATTR_MASK, "ATTR_MASK mismatch");
61 _Static_assert(ATTR_DESCR_MASK == AARCH64_ATTR_DESCR_MASK,
63 _Static_assert(L3_SHIFT == AARCH64_L3_SHIFT, "L3_SHIFT mismatch");
64 _Static_assert(L3_PAGE == AARCH64_L3_PAGE, "L3_PAGE mismatch");
/freebsd-12.1/lib/libc/locale/
H A Dxlocale_private.h63 _Static_assert(XLC_LAST - XLC_COLLATE == 6, "XLC values should be contiguous");
64 _Static_assert(XLC_COLLATE == LC_COLLATE - 1,
66 _Static_assert(XLC_CTYPE == LC_CTYPE - 1,
68 _Static_assert(XLC_MONETARY == LC_MONETARY - 1,
70 _Static_assert(XLC_NUMERIC == LC_NUMERIC - 1,
72 _Static_assert(XLC_TIME == LC_TIME - 1,
74 _Static_assert(XLC_MESSAGES == LC_MESSAGES - 1,
/freebsd-12.1/sys/kern/
H A Dkern_thread.c80 _Static_assert(offsetof(struct thread, td_flags) == 0xfc,
84 _Static_assert(offsetof(struct thread, td_frame) == 0x470,
88 _Static_assert(offsetof(struct proc, p_flag) == 0xb0,
90 _Static_assert(offsetof(struct proc, p_pid) == 0xbc,
92 _Static_assert(offsetof(struct proc, p_filemon) == 0x3d0,
94 _Static_assert(offsetof(struct proc, p_comm) == 0x3e4,
100 _Static_assert(offsetof(struct thread, td_flags) == 0x98,
108 _Static_assert(offsetof(struct proc, p_flag) == 0x68,
110 _Static_assert(offsetof(struct proc, p_pid) == 0x74,
112 _Static_assert(offsetof(struct proc, p_filemon) == 0x27c,
[all …]
/freebsd-12.1/sys/dev/nvme/
H A Dnvme.h540 _Static_assert(sizeof(struct nvme_registers) == 0x1008, "bad size for nvme_registers");
574 _Static_assert(sizeof(struct nvme_command) == 16 * 4, "bad size for nvme_command");
593 _Static_assert(sizeof(struct nvme_completion) == 4 * 4, "bad size for nvme_completion");
604 _Static_assert(sizeof(struct nvme_dsm_range) == 16, "bad size for nvme_dsm_ranage");
865 _Static_assert(sizeof(struct nvme_power_state) == 32, "bad size for nvme_power_state");
1344 _Static_assert(sizeof(struct nvme_firmware_page) == 512, "bad size for nvme_firmware_page");
1350 _Static_assert(sizeof(struct nvme_ns_list) == 4096, "bad size for nvme_ns_list");
1358 _Static_assert(sizeof(struct nvme_command_effects_page) == 4096,
1370 _Static_assert(sizeof(struct nvme_res_notification_page) == 64,
1386 _Static_assert(sizeof(struct nvme_sanitize_status_page) == 512,
[all …]
/freebsd-12.1/sys/net/
H A Dpfkeyv2.h235 _Static_assert(sizeof(struct sadb_x_policy) == 16, "struct size mismatch");
271 _Static_assert(sizeof(struct sadb_x_nat_t_type) == 8, "struct size mismatch");
280 _Static_assert(sizeof(struct sadb_x_nat_t_port) == 8, "struct size mismatch");
289 _Static_assert(sizeof(struct sadb_x_nat_t_frag) == 8, "struct size mismatch");
298 _Static_assert(sizeof(struct sadb_x_sa_replay) == 8, "struct size mismatch");
/freebsd-12.1/contrib/llvm/tools/clang/lib/Headers/
H A D__clang_cuda_intrinsics.h59 _Static_assert(sizeof(__val) == sizeof(__Bits)); \
60 _Static_assert(sizeof(__Bits) == 2 * sizeof(int)); \
71 _Static_assert(sizeof(long) == sizeof(long long) || \
94 _Static_assert(sizeof(__tmp) == sizeof(__val)); \
143 _Static_assert(sizeof(__val) == sizeof(__Bits)); \
144 _Static_assert(sizeof(__Bits) == 2 * sizeof(int)); \
161 _Static_assert(sizeof(long) == sizeof(long long) || \
180 _Static_assert(sizeof(__tmp) == sizeof(__val)); \
/freebsd-12.1/sys/dev/iwm/
H A Dif_iwm_sf.c230 _Static_assert(sizeof(sf_full_timeout) == sizeof(uint32_t) * in iwm_mvm_fill_sf_command()
237 _Static_assert(sizeof(sf_full_timeout_def) == sizeof(uint32_t) * in iwm_mvm_fill_sf_command()
/freebsd-12.1/sys/dev/nvdimm/
H A Dnvdimm_var.h78 _Static_assert(sizeof(struct nvdimm_label_index) == 72, "Incorrect layout");
79 _Static_assert(sizeof(struct nvdimm_label) == 256, "Incorrect layout");
/freebsd-12.1/lib/libstdthreads/
H A Dcall_once.c45 _Static_assert(sizeof(once_flag) == sizeof(pthread_once_t),
H A Dtss.c70 _Static_assert(TSS_DTOR_ITERATIONS == PTHREAD_DESTRUCTOR_ITERATIONS,
/freebsd-12.1/include/
H A Dassert.h73 #define static_assert _Static_assert
/freebsd-12.1/sys/dev/vmware/vmci/
H A Dvmci_kernel_defs.h20 #define ASSERT_ON_COMPILE(e) _Static_assert(e, #e);
/freebsd-12.1/sys/arm/arm/
H A Dvm_machdep.c85 _Static_assert((sizeof(struct switchframe) % 8) == 0, "Bad alignment");
86 _Static_assert((sizeof(struct trapframe) % 8) == 0, "Bad alignment");
/freebsd-12.1/lib/libc/gen/
H A Dtelldir.h91 _Static_assert(sizeof(long) == sizeof(union ddloc_packed),
/freebsd-12.1/include/protocols/
H A Dtimed.h100 _Static_assert(sizeof(tsptype) / sizeof(const char *) == TSPTYPENUMBER,
/freebsd-12.1/sys/i386/i386/
H A Dvm_machdep.c93 _Static_assert(OFFSETOF_CURTHREAD == offsetof(struct pcpu, pc_curthread),
95 _Static_assert(OFFSETOF_CURPCB == offsetof(struct pcpu, pc_curpcb),
97 _Static_assert(__OFFSETOF_MONITORBUF == offsetof(struct pcpu, pc_monitorbuf),

1234