Home
last modified time | relevance | path

Searched refs:powerof2 (Results 1 – 25 of 27) sorted by relevance

12

/openbsd/lib/libc/stdio/
H A Dgetdelim.c91 #define powerof2(x) ((((x)-1)&(x))==0) in getdelim() macro
92 if (!powerof2(newlen)) { in getdelim()
/openbsd/gnu/usr.bin/binutils-2.17/opcodes/
H A Dcrx-dis.c112 static int powerof2 (int);
231 powerof2 (int x) in powerof2() function
564 getregname (a->i_r), powerof2 (a->scale)); in print_arg()
/openbsd/libexec/ld.so/
H A Dlibrary.c116 #define powerof2(x) ((((x) - 1) & (x)) == 0) in _dl_tryload_shlib() macro
163 if (phdp->p_align > 1 && !powerof2(phdp->p_align)) { in _dl_tryload_shlib()
H A Dlibrary_mquery.c119 #define powerof2(x) ((((x) - 1) & (x)) == 0) in _dl_tryload_shlib() macro
173 if (phdp->p_align > 1 && !powerof2(phdp->p_align)) { in _dl_tryload_shlib()
/openbsd/sys/sys/
H A Dparam.h189 #define powerof2(x) ((((x)-1)&(x))==0) macro
/openbsd/sys/arch/i386/i386/
H A Dk6_mem.c80 if (desc->mr_len < 131072 || !powerof2(desc->mr_len)) in k6_mrmake()
H A Di686_mem.c55 powerof2((len)) && /* ... and power of two */ \
/openbsd/sys/arch/amd64/amd64/
H A Didentcpu.c802 int powerof2; in mask_width() local
804 powerof2 = ((x - 1) & x) == 0; in mask_width()
805 mask = (x << (1 - powerof2)) - 1; in mask_width()
H A Damd64_mem.c56 powerof2((len)) && /* ... and power of two */ \
H A Dmachdep.c1948 KASSERT(powerof2(num)); in idt_vec_alloc_range()
/openbsd/usr.sbin/makefs/msdos/
H A Dmkfs_msdos.c364 if (!powerof2(bpb.bps)) { in mkfs_msdos()
377 if (!powerof2(o.block_size)) { in mkfs_msdos()
394 if (!powerof2(o.sectors_per_cluster)) { in mkfs_msdos()
/openbsd/sbin/newfs_msdos/
H A Dnewfs_msdos.c375 if (!powerof2(bpb.bps)) in main()
393 if (!powerof2(opt_b)) in main()
404 if (!powerof2(opt_c)) in main()
/openbsd/sbin/newfs_ext2fs/
H A Dmke2fs.c198 if (!powerof2(bsize)) { in mke2fs()
203 if (!powerof2(fsize)) { in mke2fs()
1396 if (val == 0 || !powerof2(val)) in ilog2()
H A Dnewfs_ext2fs.c168 if (!powerof2(sectorsize)) in main()
/openbsd/sbin/fsck_msdos/
H A Dboot.c91 if (boot->SecPerClust == 0 || !powerof2(boot->SecPerClust)) { in readboot()
/openbsd/sys/dev/pv/
H A Dxbf.c972 if (!powerof2(sc->sc_xr_size)) in xbf_init()
977 if (!powerof2(sc->sc_xr_ndesc)) in xbf_init()
/openbsd/sys/kern/
H A Dexec_elf.c403 if ((ph[i].p_align > 1) && !powerof2(ph[i].p_align)) { in elf_load_file()
644 if ((pp->p_align > 1) && !powerof2(pp->p_align)) { in exec_elf_makecmds()
H A Dkern_sysctl.c715 !powerof2(stackgap) || stackgap >= MAXSSIZ) in kern_sysctl_locked()
/openbsd/sys/uvm/
H A Duvm_pmemrange.c874 KASSERT(powerof2(align)); in uvm_pmr_getpages()
876 KASSERT(boundary == 0 || powerof2(boundary)); in uvm_pmr_getpages()
/openbsd/sys/dev/ic/
H A Dqwxvar.h2015 return (powerof2(i) ? i : (1 << (fls(i) - 1))); in qwx_roundup_pow_of_two()
H A Dqwzvar.h2158 return (powerof2(i) ? i : (1 << (fls(i) - 1))); in qwz_roundup_pow_of_two()
/openbsd/sys/dev/usb/
H A Dif_umb.c719 if (!powerof2(sc->sc_align) || sc->sc_align == 0 || in umb_ncm_setup()
722 if (!powerof2(sc->sc_ndp_div) || sc->sc_ndp_div == 0 || in umb_ncm_setup()
/openbsd/sys/dev/pci/
H A Dif_bnxt.c552 KASSERT(powerof2(sc->sc_nqueues)); in bnxt_attach()
H A Dif_aq_pci.c1292 KASSERT(powerof2(sc->sc_nqueues)); in aq_attach()
H A Dif_ixl.c1833 KASSERT(powerof2(nqueues)); in ixl_attach()

12