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

/openbsd-current/lib/libc/stdio/
H A Dgetdelim.c91 #define powerof2(x) ((((x)-1)&(x))==0) macro
92 if (!powerof2(newlen)) {
/openbsd-current/sys/arch/i386/i386/
H A Dk6_mem.c80 if (desc->mr_len < 131072 || !powerof2(desc->mr_len))
H A Di686_mem.c55 powerof2((len)) && /* ... and power of two */ \
/openbsd-current/sys/sys/
H A Dparam.h189 #define powerof2(x) ((((x)-1)&(x))==0) macro
/openbsd-current/libexec/ld.so/
H A Dlibrary.c116 #define powerof2(x) ((((x) - 1) & (x)) == 0) macro
163 if (phdp->p_align > 1 && !powerof2(phdp->p_align)) {
H A Dlibrary_mquery.c119 #define powerof2(x) ((((x) - 1) & (x)) == 0) macro
173 if (phdp->p_align > 1 && !powerof2(phdp->p_align)) {
/openbsd-current/gnu/usr.bin/binutils-2.17/opcodes/
H A Dcrx-dis.c112 static int powerof2 (int);
231 powerof2 (int x) function
564 getregname (a->i_r), powerof2 (a->scale));
/openbsd-current/sbin/fsck_msdos/
H A Dboot.c29 #include <sys/param.h> /* DEV_BSIZE powerof2 */
91 if (boot->SecPerClust == 0 || !powerof2(boot->SecPerClust)) {
/openbsd-current/sbin/newfs_ext2fs/
H A Dnewfs_ext2fs.c36 #include <sys/param.h> /* powerof2 */
168 if (!powerof2(sectorsize))
H A Dmke2fs.c100 #include <sys/param.h> /* MAXBSIZE powerof2 roundup setbit isset MIN */
198 if (!powerof2(bsize)) {
203 if (!powerof2(fsize)) {
1396 if (val == 0 || !powerof2(val))
/openbsd-current/usr.sbin/makefs/msdos/
H A Dmkfs_msdos.c31 #include <sys/param.h> /* powerof2 */
364 if (!powerof2(bpb.bps)) {
377 if (!powerof2(o.block_size)) {
394 if (!powerof2(o.sectors_per_cluster)) {
/openbsd-current/sbin/newfs_msdos/
H A Dnewfs_msdos.c30 #include <sys/param.h> /* powerof2 */
375 if (!powerof2(bpb.bps))
393 if (!powerof2(opt_b))
404 if (!powerof2(opt_c))
/openbsd-current/sys/arch/amd64/amd64/
H A Didentcpu.c784 int powerof2; local
786 powerof2 = ((x - 1) & x) == 0;
787 mask = (x << (1 - powerof2)) - 1;
H A Damd64_mem.c56 powerof2((len)) && /* ... and power of two */ \
H A Dmachdep.c1940 KASSERT(powerof2(num));
/openbsd-current/sys/dev/pv/
H A Dxbf.c976 if (!powerof2(sc->sc_xr_size))
981 if (!powerof2(sc->sc_xr_ndesc))
/openbsd-current/sys/kern/
H A Dexec_elf.c400 if ((ph[i].p_align > 1) && !powerof2(ph[i].p_align)) {
639 if ((pp->p_align > 1) && !powerof2(pp->p_align)) {
H A Dkern_sysctl.c599 !powerof2(stackgap) || stackgap >= MAXSSIZ)
/openbsd-current/sys/uvm/
H A Duvm_pmemrange.c868 KASSERT(powerof2(align));
870 KASSERT(boundary == 0 || powerof2(boundary));
/openbsd-current/sys/dev/ic/
H A Dqwxvar.h1981 return (powerof2(i) ? i : (1 << (fls(i) - 1)));
H A Daic79xx.c8342 while (powerof2(sg_prefetch_align) == 0)
/openbsd-current/sys/dev/usb/
H A Dif_umb.c717 if (!powerof2(sc->sc_align) || sc->sc_align == 0 ||
720 if (!powerof2(sc->sc_ndp_div) || sc->sc_ndp_div == 0 ||
/openbsd-current/sys/dev/pci/
H A Dif_bnxt.c553 KASSERT(powerof2(sc->sc_nqueues));
H A Dif_aq_pci.c1293 KASSERT(powerof2(sc->sc_nqueues));
H A Dif_ixl.c1834 KASSERT(powerof2(nqueues));

Completed in 541 milliseconds