roundup2
bpp = roundup2(gfx_fb.framebuffer_common.framebuffer_bpp, 8) >> 3;
bpp = roundup2(gfx_fb.framebuffer_common.framebuffer_bpp, 8) >> 3;
bpp = roundup2(gfx_fb.framebuffer_common.framebuffer_bpp, 8) >> 3;
bpp = roundup2(gfx_fb.framebuffer_common.framebuffer_bpp, 8) >> 3;
(uint64_t)(roundup2(fp->f_size, PAGE_SIZE) >> 12));
size = roundup2(sizeof (struct font_info), 8);
size += roundup2(size, 8);
laddr = roundup2(laddr, 8);
laddr = roundup2(laddr, 8);
(uint64_t)(roundup2(st.st_size, PAGE_SIZE) >> 12));
(uint64_t)(roundup2(st.st_size, PAGE_SIZE) >> 12));
tmp = roundup2(load_addr + fp->f_size + 1, MULTIBOOT_MOD_ALIGN);
map_size = roundup2(map_size, EFI_PAGE_SIZE);
last_addr = roundup2(last_addr, MULTIBOOT_TAG_ALIGN);
roundup2((uintptr_t)mp + mp->mb_size,
roundup2(tag->mbh_size, MULTIBOOT_TAG_ALIGN))) {
size = roundup2(size, EFI_PAGE_SIZE);
size = roundup2(size, MULTIBOOT_TAG_ALIGN);
size = roundup2(size, MULTIBOOT_TAG_ALIGN);
size = roundup2(size, MULTIBOOT_TAG_ALIGN);
size = roundup2(size, MULTIBOOT_TAG_ALIGN);
size = roundup2(size, MULTIBOOT_TAG_ALIGN);
size = roundup2(size, MULTIBOOT_TAG_ALIGN);
size = roundup2(size, MULTIBOOT_TAG_ALIGN);
size = roundup2(size, MULTIBOOT_TAG_ALIGN);
size = roundup2(size, MULTIBOOT_TAG_ALIGN);
size = roundup2(size, MULTIBOOT_TAG_ALIGN);
size = roundup2(size, MULTIBOOT_TAG_ALIGN);
size = roundup2(size, MULTIBOOT_TAG_ALIGN);
if (ioalign > 1 && (uintptr_t)buf != roundup2((uintptr_t)buf, ioalign))
loader_gdt.rd_limit = roundup2(fw_gdt.rd_limit +
addr = roundup2(mp->mb_mod_end + 1,
(roundup2(__base + (int32_t)&_end, 0x10000) - __base);
p += roundup2(hdr.ex.a_text, PAGE_SIZE);
p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE);
p += roundup2(ep[1].p_memsz, PAGE_SIZE);
(roundup2(__base + (int32_t)&_end, 0x10000) - __base);
p += roundup2(hdr.ex.a_text, PAGE_SIZE);
p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE);
p += roundup2(ep[1].p_memsz, PAGE_SIZE);
off = roundup2(addr + 1, MULTIBOOT_MOD_ALIGN);
off = roundup2(mfp->f_addr + mfp->f_size + 1,
off = roundup2(fb_addr + fb_size + 1,
aligned = (char *)(roundup2(dptr, align) - MALLOCALIGN);
total_size = roundup2(head + bytes, secsz);
total_size = roundup2(head + bytes, secsz);
base = roundup2(element->base, alignment);
base = MAX(min_address, roundup2(element->base, alignment));
table->off = roundup2(*off, table->alignment);
reallen = roundup2(caplen, 4); /* dword aligned */
tab_size = roundup2(tab_size, 4096);
pci_emul_membase64 = roundup2(pci_emul_membase64, PCI_EMUL_MEMSIZE64);
pci_emul_iobase = roundup2(pci_emul_iobase, BUSIO_ROUNDUP);
pci_emul_membase32 = roundup2(pci_emul_membase32,
pci_emul_membase64 = roundup2(pci_emul_membase64,
base = roundup2(*baseptr, size);
#define PBA_SIZE(msgnum) (roundup2((msgnum), 64) / 8)
table_size = roundup2(table_size, 4096);
table_size = roundup2(table_size, 4096);
*offp = roundup2(*offp, VIRTIO_PCI_CAP_COMMON_CFG_ALIGN);
bardatalen = roundup2(sizeof (struct virtio_pci_common_cfg), PAGE_SIZE);
*offp = roundup2(*offp, VIRTIO_PCI_CAP_NOTIFY_CFG_ALIGN);
bardatalen = roundup2((uint32_t)datalen, PAGE_SIZE);
*offp = roundup2(*offp, VIRTIO_PCI_CAP_ISR_CFG_ALIGN);
*offp = roundup2(*offp, VIRTIO_PCI_CAP_DEVICE_CFG_ALIGN);
phys = roundup2(phys, LEGACY_VRING_ALIGN);