/openbsd/lib/libc/stdio/ |
H A D | getdelim.c | 91 #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 D | crx-dis.c | 112 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 D | library.c | 116 #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 D | library_mquery.c | 119 #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 D | param.h | 189 #define powerof2(x) ((((x)-1)&(x))==0) macro
|
/openbsd/sys/arch/i386/i386/ |
H A D | k6_mem.c | 80 if (desc->mr_len < 131072 || !powerof2(desc->mr_len)) in k6_mrmake()
|
H A D | i686_mem.c | 55 powerof2((len)) && /* ... and power of two */ \
|
/openbsd/sys/arch/amd64/amd64/ |
H A D | identcpu.c | 802 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 D | amd64_mem.c | 56 powerof2((len)) && /* ... and power of two */ \
|
H A D | machdep.c | 1948 KASSERT(powerof2(num)); in idt_vec_alloc_range()
|
/openbsd/usr.sbin/makefs/msdos/ |
H A D | mkfs_msdos.c | 364 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 D | newfs_msdos.c | 375 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 D | mke2fs.c | 198 if (!powerof2(bsize)) { in mke2fs() 203 if (!powerof2(fsize)) { in mke2fs() 1396 if (val == 0 || !powerof2(val)) in ilog2()
|
H A D | newfs_ext2fs.c | 168 if (!powerof2(sectorsize)) in main()
|
/openbsd/sbin/fsck_msdos/ |
H A D | boot.c | 91 if (boot->SecPerClust == 0 || !powerof2(boot->SecPerClust)) { in readboot()
|
/openbsd/sys/dev/pv/ |
H A D | xbf.c | 972 if (!powerof2(sc->sc_xr_size)) in xbf_init() 977 if (!powerof2(sc->sc_xr_ndesc)) in xbf_init()
|
/openbsd/sys/kern/ |
H A D | exec_elf.c | 403 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 D | kern_sysctl.c | 715 !powerof2(stackgap) || stackgap >= MAXSSIZ) in kern_sysctl_locked()
|
/openbsd/sys/uvm/ |
H A D | uvm_pmemrange.c | 874 KASSERT(powerof2(align)); in uvm_pmr_getpages() 876 KASSERT(boundary == 0 || powerof2(boundary)); in uvm_pmr_getpages()
|
/openbsd/sys/dev/ic/ |
H A D | qwxvar.h | 2015 return (powerof2(i) ? i : (1 << (fls(i) - 1))); in qwx_roundup_pow_of_two()
|
H A D | qwzvar.h | 2158 return (powerof2(i) ? i : (1 << (fls(i) - 1))); in qwz_roundup_pow_of_two()
|
/openbsd/sys/dev/usb/ |
H A D | if_umb.c | 719 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 D | if_bnxt.c | 552 KASSERT(powerof2(sc->sc_nqueues)); in bnxt_attach()
|
H A D | if_aq_pci.c | 1292 KASSERT(powerof2(sc->sc_nqueues)); in aq_attach()
|
H A D | if_ixl.c | 1833 KASSERT(powerof2(nqueues)); in ixl_attach()
|