roundup2
p32 = (uint8_t *)roundup2((uintptr_t)p8, 4);
tls_size = roundup2(phdr->p_memsz, phdr->p_align);
tls_allocation = roundup2(tls_size, alignof(max_align_t));
_rtld_tls_static_space = roundup2(_rtld_tls_static_space,
offset = roundup2(_rtld_tls_static_offset, obj->tlsalign);
offset = roundup2(_rtld_tls_static_offset + obj->tlssize,
x = roundup2((uintptr_t)mem + sizeof(union overhead), align);
table_size = roundup2(l1_entry_size * l1_num_ids, page_size);
len = roundup2(len, line_size);
#define DEVMAP_SIZE(s) roundup2((s), L1_S_SIZE)
const int len = roundup2(m->m_len, 4);
pktdata, roundup2(len, 4) / 4);
((ch) * roundup2(DESC_LEN(DESC_NUM), COHERENCY_UNIT) + DESC_LEN(n))
memsize = roundup2(MIPS_KSEG0_TO_PHYS((uintptr_t)(end)), 1024 * 1024);
roundup2(spinup_table_addr, 32);
memset(esc->sc_obuf, 0, roundup2(*dmasize, 16));
d->sbdma_dscrtable = (sbdmadscr_t *)roundup2(ptr, CACHELINESIZE);
for (len = roundup2(len, 4); offset < len; offset += 4, dp32++) {
paddr_t end = roundup2(mp->start + mp->size, bat_inc);
end = roundup2(mp->start + mp->size, bat_inc);
const vaddr_t eva = roundup2(va + sz, line_size);
const vaddr_t eva = roundup2(va + sz, line_size);
const vaddr_t eva = roundup2(va + sz, line_size);
const paddr_t epa = roundup2(pa + len, sc->sc_line_size);
len = roundup2(len + (rva & PAGE_MASK_4M), PAGE_SIZE_4M);
len = roundup2(len + (rva & PAGE_MASK_4M), PAGE_SIZE_4M);
ci = (struct cpu_info *)roundup2(ptr, CACHE_LINE_SIZE);
(struct intel1_ucode_header *)roundup2((uintptr_t)uha, 16);
ts = (void *)roundup2((uintptr_t)stackbuf, COHERENCY_UNIT);
ci = (struct cpu_info *)roundup2(ptr, CACHE_LINE_SIZE);
ci = (struct cpu_info *)roundup2(ptr, CACHE_LINE_SIZE);
ptr = roundup2(ptr, size);
vsize = roundup2(MAX(track->usrbuf.capacity, PAGE_SIZE), PAGE_SIZE);
newvsize = roundup2(newbufsize, PAGE_SIZE);
pkt->rm_len = roundup2(olen, txr->txr_agg_align);
roundup2(ETHER_MIN_LEN + ETHER_VLAN_ENCAP_LEN - ETHER_CRC_LEN + \
roundup2((m)->m_pkthdr.len + HVN_RNDIS_PKT_LEN, (align))
sc->sc_scp_sz = roundup2(sizeof(struct iee_scp), sc->sc_cl_align);
sc->sc_iscp_sz = roundup2(sizeof(struct iee_iscp), sc->sc_cl_align);
sc->sc_scb_sz = roundup2(sizeof(struct iee_scb), sc->sc_cl_align);
sc->sc_rfd_sz = roundup2(sizeof(struct iee_rfd), sc->sc_cl_align);
sc->sc_rbd_sz = roundup2(sizeof(struct iee_rbd), sc->sc_cl_align);
sc->sc_cb_sz = roundup2(sizeof(struct iee_cb), sc->sc_cl_align);
sc->sc_tbd_sz = roundup2(sizeof(struct iee_tbd), sc->sc_cl_align);
amount = roundup2(amount, sizeof(uint16_t));
new_rx = roundup2(new_rx, sizeof(uint32_t)) % RTK_RXBUFLEN;
memset(t, 0, roundup2(len, sizeof(uint32_t)));
b->psize = roundup2(b->psize, sizeof(uint32_t));
esize = ssize = roundup2(esize, PAGE_SIZE);
xfer = fwmem_xfer_req(fwdev, sc, spd, 0, roundup2(len, 4), hand);
cycle = roundup2(cycle, CYCLE_MOD);
r += roundup2(fp->mode.wreqb.len, sizeof(uint32_t));
sc->arrq.xferq.psize = roundup2(FWPMAX_S400, PAGE_SIZE);
sc->arrs.xferq.psize = roundup2(FWPMAX_S400, PAGE_SIZE);
sc->atrq.xferq.psize = roundup2(FWPMAX_S400, PAGE_SIZE);
sc->atrs.xferq.psize = roundup2(FWPMAX_S400, PAGE_SIZE);
const int rsize = roundup2(
const int tsize = roundup2(
const int rsize = roundup2(
roundup2(sc->hw.mac.max_frame_size, 1024);
rxlen = roundup2(rxlen, 2);
total_len = roundup2(pkt_len, 64);
xferlen = roundup2(sizeof(*hdr) + ilen, 4);
hlen = roundup2(sizeof(*head) + hlen, 4);
totlen = roundup2(totlen, pktspacing);
if (off < 0 || off > roundup2(UDL_FBMEM_SIZE(sc), PAGE_SIZE))
size = roundup2(XHCI_EVENT_RING_SEGMENTS * XHCI_ERSTE_SIZE,
xpipe->xp_isoc_next = roundup2(mfindex, ival) & mfmask;
const size_t sz = roundup2(len, TMPFS_NAME_QUANTUM);
const size_t sz = roundup2(len, TMPFS_NAME_QUANTUM);
size = roundup2(sizeof(spc->spc_queue[0]) * PRI_COUNT, coherency_unit) +
spc->spc_queue = (void *)roundup2((uintptr_t)p, coherency_unit);
const size_t len = roundup2(copylen, sizeof(uint64_t));
#define KC_MAXCPUS roundup2(MAXCPUS, 32)
wq = (void *)roundup2((uintptr_t)ptr, coherency_unit);
#define WQ_SIZE (roundup2(sizeof(struct workqueue), coherency_unit))
#define WQ_QUEUE_SIZE (roundup2(sizeof(struct workqueue_queue), coherency_unit))
sc = kmem_alloc(roundup2(sizeof(selcluster_t),
sc = (void *)roundup2((uintptr_t)sc, coherency_unit);
sz = roundup2(sizeof(struct nchcpu), coherency_unit);
toalloc = roundup2(allocated + 1, NPF_IFADDR_STEP);
blkbuf_start = (void *)roundup2((intptr_t)blkbuf,
#define EXT2FS_DIRSIZ(len) roundup2(8 + len, 4)
i_offset = roundup2(dp->i_size, dp->i_e2fs->e2fs_bsize);
eapad1 = roundup2(ealength, 8) - ealength;
eapad2 = roundup2(ealen, 8) - ealen;
roundup2((sizeof(struct extattr) - 1 + (eap)->ea_namelength), 8)
cache_line_size = roundup2(sizeof(kmutex_t), cache_line_size);
*vap = roundup2(*vap, align);
bucketsize = roundup2(bucketsize, coherency_unit);
bucketsize = roundup2(bucketsize, coherency_unit);
bucketarray = (char *)roundup2((uintptr_t)bucketmem, coherency_unit);
ucpu = (struct uvm_cpu *)roundup2((uintptr_t)ucpu,
(roundup2(sz * VM_NFREELIST, coherency_unit) + coherency_unit - 1);
addr = roundup2((uintptr_t)ucpu->pgflcachemem, coherency_unit);
candidate = roundup2(ulmax(low, uvm_physseg_get_avail_start(psi) +
candidate = roundup2(ulmax(low, uvm_physseg_get_avail_start(psi)), alignment);
candidate = roundup2(candidate, alignment);
cnt = roundup2(cnt, alignment);
rlo = roundup2(ptoa(uvm_physseg_get_avail_start(upm)), alignment);
rlo = MAX(rlo, roundup2(low, alignment));
rlo = MAX(rlo, roundup2(pa - ptoa(num - 1), alignment));
low = roundup2(low, alignment);
lsize = roundup2(bufsize, pagesize);