CTASSERT
CTASSERT(INT_MAX <= INT64_MAX / SECS_PER_DAY);
CTASSERT(MAX_POSIX_TIME <= INT64_MAX - INT_MAX * SECS_PER_DAY);
CTASSERT(MIN_POSIX_TIME >= INT64_MIN - INT_MIN * SECS_PER_DAY);
CTASSERT(SECS_PER_DAY <= INT_MAX);
CTASSERT((MAX_POSIX_TIME - MIN_POSIX_TIME) / SECS_PER_DAY <= INT_MAX);
CTASSERT(sizeof(is_square_mod_11) == 11);
CTASSERT(sizeof(is_square_mod_63) == 63);
CTASSERT(sizeof(is_square_mod_64) == 64);
CTASSERT(sizeof(is_square_mod_65) == 65);
CTASSERT((sizeof(locks) / sizeof(*locks)) == CRYPTO_NUM_LOCKS);
CTASSERT(sizeof(MD4_LONG) == sizeof(uint32_t));
CTASSERT(sizeof(MD5_LONG) == sizeof(uint32_t));
CTASSERT(sizeof(entropy) == 2 * /*kEta=*/ 2 * DEGREE / 8);
CTASSERT(sizeof(RIPEMD160_LONG) == sizeof(uint32_t));
CTASSERT(sizeof(SHA_LONG) == sizeof(uint32_t));
CTASSERT(sizeof(SHA_LONG) == sizeof(uint32_t));
CTASSERT(sizeof(SHA_LONG64) == sizeof(uint64_t));
CTASSERT(sizeof(SM3_WORD) == sizeof(uint32_t));
#ifndef CTASSERT
CTASSERT(N_TLS_EXTENSIONS <= (sizeof(uint32_t) * 8));
CTASSERT(sizeof(s->session->master_key) == SSL_MAX_MASTER_KEY_LENGTH);
CTASSERT(sizeof(state_machine) / sizeof(state_machine[0]) ==
CTASSERT(sizeof(a) <= sizeof(buf));
CTASSERT(sizeof(struct codepatch) % 8 == 0);
CTASSERT((offsetof(struct cpu_info, ci_mds_tmp) -
CTASSERT(sizeof(struct intel_ucode_header) == 48);
CTASSERT(_ALIGN(sizeof(struct x86_64_tss)) +
CTASSERT(offsetof(struct cpu_info_full, cif_cpu.ci_PAGEALIGN) % PAGE_SIZE == 0);
CTASSERT(sizeof(struct cpu_info_full) % PAGE_SIZE == 0);
CTASSERT(&cpu_info_primary - &cpu_info_full_primary.cif_cpu == 0);
CTASSERT(SOFTINTR_XCALL < 32);
CTASSERT(sizeof(struct pmapvp0) == 2 * PAGE_SIZE);
CTASSERT(sizeof(struct pmapvp0) == sizeof(struct pmapvp1));
CTASSERT(sizeof(struct pmapvp0) == sizeof(struct pmapvp2));
CTASSERT(sizeof(struct pmapvp0) == sizeof(struct pmapvp3));
CTASSERT(sizeof(struct smmuvp0) == sizeof(struct smmuvp1));
CTASSERT(sizeof(struct smmuvp0) == sizeof(struct smmuvp2));
CTASSERT(sizeof(struct smmuvp0) != sizeof(struct smmuvp3));
CTASSERT(sizeof(struct intel_ucode_header) == 48);
CTASSERT(_ALIGN(2 * sizeof(struct i386tss)) +
CTASSERT(offsetof(struct cpu_info_full, cif_cpu.ci_PAGEALIGN) % PAGE_SIZE == 0);
CTASSERT(sizeof(struct cpu_info_full) % PAGE_SIZE == 0);
CTASSERT(&cpu_info_primary - &cpu_info_full_primary.cif_cpu == 0);
CTASSERT(MCLBYTES >= OCTEON_POOL_SIZE_PKT + CACHELINESIZE);
CTASSERT(offsetof(GHASH_CTX, H) % 8 == 0);
CTASSERT(offsetof(GHASH_CTX, S) % 8 == 0);
CTASSERT(sizeof(struct pmapvp1) == sizeof(struct pmapvp2));
CTASSERT(sizeof(struct pmapvp1) == 2 * PAGE_SIZE);
CTASSERT(sizeof(struct pmapvp1) == sizeof(struct pmapvp2));
CTASSERT(sizeof(struct pmapvp1) == sizeof(struct pmapvp3));
CTASSERT((sizeof(struct trapframe) & STACKALIGNBYTES) == 0);
CTASSERT((sizeof(struct switchframe) & STACKALIGNBYTES) == 0);
CTASSERT(SSF_SIZE == BKPT_SIZE);
CTASSERT(RET_SIZE == BKPT_SIZE);
CTASSERT(SSF_SIZE == BKPT_SIZE);
CTASSERT(SSF_SIZE == BKPT_SIZE);
CTASSERT(MVNETA_TX_RING_CNT > 1 && MVNETA_TX_RING_NEXT(MVNETA_TX_RING_CNT) ==
CTASSERT(MVNETA_RX_RING_CNT > 1 && MVNETA_RX_RING_NEXT(MVNETA_RX_RING_CNT) ==
CTASSERT(MVNETA_NDFSMT == MVNETA_NDFOMT);
CTASSERT(nitems(mvneta_counters) == mvnet_stat_count);
CTASSERT(MCLBYTES == 2048);
#define BUILD_BUG_ON(x) CTASSERT(!(x))
CTASSERT((CHAR_BIT * sizeof(struct list_head *)) <= 64);
CTASSERT(MAXMCLBYTES < ICE_TSO_SIZE);
CTASSERT(KSTAT_KV_U_PACKETS <= 0xff);
CTASSERT(KSTAT_KV_U_BYTES <= 0xff);
CTASSERT(MAXMCLBYTES <= IXGBE_TSO_SIZE);
CTASSERT(nitems(regs) <= nitems(sc->sc_hmc_entries));
CTASSERT(KSTAT_KV_U_NONE <= 0xffU);
CTASSERT(KSTAT_KV_U_PACKETS <= 0xffU);
CTASSERT(KSTAT_KV_U_BYTES <= 0xffU);
CTASSERT(sizeof(struct ixl_aq_vsi_data) == 128);
CTASSERT(MAXMCLBYTES < IXL_TSO_SIZE);
CTASSERT(KSTAT_KV_U_PACKETS <= 0xff);
CTASSERT(KSTAT_KV_U_BYTES <= 0xff);
CTASSERT(offsetof(struct mcx_cap_device, max_indirection) == 0x20);
CTASSERT(offsetof(struct mcx_cap_device, flags1) == 0x2c);
CTASSERT(offsetof(struct mcx_cap_device, flags2) == 0x30);
CTASSERT(offsetof(struct mcx_cap_device, snapshot_log_max_msg) == 0x38);
CTASSERT(offsetof(struct mcx_cap_device, flags5) == 0x40);
CTASSERT(offsetof(struct mcx_cap_device, flags7) == 0x4c);
CTASSERT(offsetof(struct mcx_cap_device, device_frequency_mhz) == 0x98);
CTASSERT(offsetof(struct mcx_cap_device, device_frequency_khz) == 0x9c);
CTASSERT(sizeof(struct mcx_cap_device) <= MCX_CMDQ_MAILBOX_DATASIZE);
CTASSERT(ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN == MCX_SQ_INLINE_SIZE);
CTASSERT(IF_MAX_VECTORS * MCX_CQ_DOORBELL_STRIDE < MCX_WQ_DOORBELL_BASE);
CTASSERT(IF_MAX_VECTORS * MCX_WQ_DOORBELL_STRIDE <
CTASSERT(sizeof(struct mcx_eq_ctx) == 64);
CTASSERT(sizeof(struct mcx_eq_entry) == 64);
CTASSERT(sizeof(struct mcx_cq_ctx) == 64);
CTASSERT(sizeof(struct mcx_cq_entry) == 64);
CTASSERT(sizeof(struct mcx_wq_ctx) == 0xC0);
CTASSERT(sizeof(struct mcx_sq_entry) == 64);
CTASSERT(sizeof(struct mcx_flow_match) == 512);
CTASSERT(sizeof(*mb) <= MCX_CMDQ_MAILBOX_DATASIZE);
CTASSERT(MCX_ISSI < NBBY);
CTASSERT(sizeof(struct mcx_reg_ppcnt) == 256);
CTASSERT((offsetof(struct mcx_reg_ppcnt, ppcnt_counter_set) %
CTASSERT(mcx_ppcnt_ieee8023_count * sizeof(uint64_t) == 0x98);
CTASSERT(mcx_ppcnt_rfc2863_count * sizeof(uint64_t) == 0x68);
CTASSERT((mcx_ppcnt_rfc2819_count * sizeof(uint64_t)) == 0xa8);
CTASSERT((mcx_ppcnt_rfc3635_count * sizeof(uint64_t)) == 0x80);
CTASSERT(sizeof(*mbin) <= MCX_CMDQ_MAILBOX_DATASIZE);
CTASSERT(sizeof(*mbout) <= MCX_CMDQ_MAILBOX_DATASIZE);
CTASSERT(sizeof(*mbin) <= MCX_CMDQ_MAILBOX_DATASIZE);
CTASSERT(sizeof(*mbout) <= MCX_CMDQ_MAILBOX_DATASIZE*2);
CTASSERT(sizeof(*mbin) <= MCX_CMDQ_MAILBOX_DATASIZE);
CTASSERT(sizeof(*mbout) <= MCX_CMDQ_MAILBOX_DATASIZE*2);
CTASSERT(sizeof(struct mcx_reg_mtmp) == 0x20);
CTASSERT(offsetof(struct mcx_reg_mtmp, mtmp_sensor_name) == 0x18);
CTASSERT(sizeof(*mbout) <= MCX_CMDQ_MAILBOX_DATASIZE*2);
CTASSERT(sizeof(*mbout) <= MCX_CMDQ_MAILBOX_DATASIZE*2);
CTASSERT(sizeof(*ctx) <= MCX_CMDQ_MAILBOX_DATASIZE*2);
CTASSERT(sizeof(*ctx) <= MCX_CMDQ_MAILBOX_DATASIZE*2);
CTASSERT(sizeof(struct mcx_cmd_query_issi_il_out) == MCX_CMDQ_INLINE_DATASIZE);
CTASSERT(sizeof(struct mcx_cmd_query_issi_mb_out) <= MCX_CMDQ_MAILBOX_DATASIZE);
CTASSERT(sizeof(struct mcx_cmd_set_issi_in) <= MCX_CMDQ_INLINE_DATASIZE);
CTASSERT(sizeof(struct mcx_cmd_set_issi_out) <= MCX_CMDQ_INLINE_DATASIZE);
CTASSERT(sizeof(struct mcx_cmd_manage_pages_in) == MCX_CMDQ_INLINE_DATASIZE);
CTASSERT(sizeof(struct mcx_cmd_manage_pages_out) == MCX_CMDQ_INLINE_DATASIZE);
CTASSERT(nitems(mcx_ppcnt_ieee8023_tpl) == mcx_ppcnt_ieee8023_count);
CTASSERT(nitems(mcx_ppcnt_rfc2863_tpl) == mcx_ppcnt_rfc2863_count);
CTASSERT(nitems(mcx_ppcnt_rfc2819_tpl) == mcx_ppcnt_rfc2819_count);
CTASSERT(nitems(mcx_ppcnt_rfc3635_tpl) == mcx_ppcnt_rfc3635_count);
CTASSERT(sizeof(struct mfi_dcmd_frame) <= sizeof(*ccb->ccb_sense));
CTASSERT(sizeof(struct mfi_sense) == MFI_SENSE_SIZE);
CTASSERT(sizeof(*data) == sizeof(*pv->pv_data));
CTASSERT(BUFSIZE < TTHIWATMINSPACE);
CTASSERT((offsetof(union hibernate_info, sec_size) + sizeof(u_int32_t)) <= DEV_BSIZE);
CTASSERT(sizeof(pts->pts_name) >= sizeof(t->p_name));
CTASSERT(MSIZE == sizeof(struct mbuf));
CTASSERT(sizeof(req->actor_mac) == sizeof(sc->sc_ac.ac_enaddr));
CTASSERT(sizeof(req->partner_mac) ==
CTASSERT(sizeof(rp.rp_ifname) == sizeof(ifp->if_xname));
CTASSERT(sizeof(rp.rp_portname) == sizeof(ifp0->if_xname));
CTASSERT(sizeof(opreq->partner_mac) ==
CTASSERT(sizeof(p->p_lladdr) == sizeof(ac0->ac_enaddr));
CTASSERT(sizeof(ifr.ifr_name) == sizeof(ifp0->if_xname));
CTASSERT(sizeof(sa->sa_data) >= ETHER_ADDR_LEN);
CTASSERT(sizeof(ifr.ifr_name) == sizeof(ifp0->if_xname));
CTASSERT(sizeof(rp->rp_ifname) == sizeof(ifp->if_xname));
CTASSERT(sizeof(ifr.ifr_name) == sizeof(ifp0->if_xname));
CTASSERT(sizeof(sa->sa_data) >= sizeof(lacp_address_slow));
CTASSERT(sizeof(ifr.if_name) == sizeof(ifp0->if_xname));
CTASSERT(sizeof(eh->ether_dhost) == sizeof(lacp_address_slow));
CTASSERT(sizeof(eh->ether_shost) == sizeof(ac->ac_enaddr));
CTASSERT(sizeof(pi->lacp_sysid.lacp_sysid_mac) ==
CTASSERT(sizeof(ifr.ifr_name) == sizeof(ifp0->if_xname));
CTASSERT(sizeof(sa->sa_data) >= sizeof(sc->sc_group));
CTASSERT(sizeof(sdl->sdl_data) >= sizeof(*endpoint));
CTASSERT(sizeof(etheripstat) == (etherips_ncounters *
CTASSERT(sizeof(pfsyncstat) == (pfsyncs_ncounters * sizeof(uint64_t)));
CTASSERT(sizeof(ioc->name) == sizeof(pfstlim->pfstlim_nm));
CTASSERT(sizeof(ioc->overload_tblname) ==
CTASSERT(sizeof(ioc->name) == sizeof(pfsrlim->pfsrlim_nm));
CTASSERT(((u_int16_t)0xffff &~ 7) / (0x10000 / PF_FRAG_ENTRY_POINTS) ==
CTASSERT(((u_int16_t)0xffff >> 3) / PF_FRAG_ENTRY_POINTS == 512 - 1);
CTASSERT(PF_FRAG_ENTRY_LIMIT <= 0xff);
CTASSERT(sizeof(rtstat) == (nitems(counters) * sizeof(uint32_t)));
CTASSERT(sizeof(struct ieee80211_ptk) >= 48);
CTASSERT(sizeof(igmpstat) == (nitems(counters) * sizeof(u_long)));
CTASSERT(sizeof(carpstat) == (carps_ncounters * sizeof(uint64_t)));
CTASSERT(sizeof(divstat) == (nitems(counters) * sizeof(u_long)));
CTASSERT(sizeof(icmpstat) == (nitems(counters) * sizeof(u_long)));
CTASSERT(sizeof(icmp_buf) <= MHLEN);
CTASSERT(sizeof(ipstat) == (nitems(counters) * sizeof(u_long)));
CTASSERT(sizeof(ipipstat) == (ipips_ncounters * sizeof(uint64_t)));
CTASSERT(sizeof(espstat) == (esps_ncounters * sizeof(uint64_t)));
CTASSERT(sizeof(ahstat) == (ahs_ncounters * sizeof(uint64_t)));
CTASSERT(sizeof(ipcompstat) == (ipcomps_ncounters * sizeof(uint64_t)));
CTASSERT(sizeof(ipsecstat) == (ipsec_ncounters * sizeof(uint64_t)));
CTASSERT(sizeof(struct ip) + sizeof(struct tcphdr) <= MHLEN);
CTASSERT(sizeof(struct ip6_hdr) + sizeof(struct tcphdr) <= MHLEN);
CTASSERT(sizeof(*thp) <= sizeof(th));
CTASSERT(sizeof(udpstat) == (nitems(counters) * sizeof(u_long)));
CTASSERT(sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr) <= MHLEN);
CTASSERT(sizeof(*icmp6stat) == icp6s_ncounters * sizeof(uint64_t));
CTASSERT(sizeof(struct ip6_hdr) + sizeof(struct tcphdr) +
CTASSERT(sizeof(*ip6stat) == (ip6s_ncounters * sizeof(uint64_t)));
CTASSERT(sizeof(rip6stat) == rip6s_ncounters * sizeof(uint64_t));
CTASSERT(sizeof(peerself->recv_eor) * 8 >= AID_MAX);
CTASSERT(sizeof(peerself->sent_eor) * 8 >= AID_MAX);
CTASSERT(sizeof(peer->stats.last_reason) > UINT8_MAX);
CTASSERT(TALSZ_MAX < 8 * sizeof(fp->talmask));
CTASSERT(sizeof(pci.pci_devices[0].pd_cfg_space) <= 256);