/dragonfly/sys/dev/drm/include/linux/ |
H A D | bug.h | 40 CTASSERT(((n) != 0) && (powerof2((n))))
|
/dragonfly/sbin/fsck_msdosfs/ |
H A D | boot.c | 66 !powerof2(boot->bpbBytesPerSec)) { in readboot() 73 if (boot->bpbSecPerClust == 0 || !powerof2(boot->bpbSecPerClust)) { in readboot()
|
/dragonfly/sbin/newfs_hammer/ |
H A D | newfs_hammer.c | 411 getsize(const char *str, int powerof2) in getsize() argument 443 if ((powerof2 & 1) && (val ^ (val - 1)) != ((val << 1) - 1)) { in getsize() 447 if ((powerof2 & 2) && (val & HAMMER_BUFMASK)) { in getsize()
|
/dragonfly/sbin/newfs_msdos/ |
H A D | mkfs_msdos.c | 348 !powerof2(bpb.bpbBytesPerSec)) { in mkfs_msdos() 379 if (!powerof2(o.block_size)) { in mkfs_msdos() 396 if (!powerof2(o.sectors_per_cluster)) { in mkfs_msdos() 866 static_assert(powerof2(MAXBPS), "MAXBPS is not power of 2"); in getchunksize() 867 assert(powerof2(chunksize)); in getchunksize()
|
/dragonfly/test/cocci/ |
H A D | useful_macros.cocci | 57 +powerof2(X)
|
/dragonfly/lib/libc/stdio/ |
H A D | getdelim.c | 45 if (!powerof2(n)) { in p2roundup()
|
/dragonfly/sbin/newfs_hammer2/ |
H A D | mkfs_hammer2.c | 197 getsize(const char *str, int64_t minval, int64_t maxval, int powerof2) in getsize() argument 238 if ((powerof2 & 1) && (val ^ (val - 1)) != ((val << 1) - 1)) { in getsize() 242 if ((powerof2 & 2) && (val & HAMMER2_NEWFS_ALIGNMASK)) { in getsize()
|
/dragonfly/sys/sys/ |
H A D | param.h | 390 #define powerof2(x) ((((x)-1)&(x))==0) macro
|
/dragonfly/sys/kern/ |
H A D | subr_sbuf.c | 127 CTASSERT(powerof2(SBUF_MAXEXTENDSIZE)); 128 CTASSERT(powerof2(SBUF_MAXEXTENDINCR));
|
H A D | kern_slaballoc.c | 781 if (size == 0 || powerof2(size)) in powerof2_size() 1093 if (powerof2(size)) in _kmalloc_debug()
|
H A D | kern_exec.c | 159 if (new_val > 0 && ((new_val > 16 * PAGE_SIZE) || !powerof2(new_val))) in sysctl_kern_stackgap()
|
/dragonfly/usr.sbin/makefs/ffs/ |
H A D | mkfs.c | 201 if (!powerof2(sblock.fs_bsize)) { in ffs_mkfs() 206 if (!powerof2(sblock.fs_fsize)) { in ffs_mkfs() 233 if (maxbsize < bsize || !powerof2(maxbsize)) { in ffs_mkfs()
|
/dragonfly/gnu/usr.bin/mpfr/ |
H A D | Makefile | 49 set_inf.c set_zero.c powerof2.c gamma.c set_ld.c get_ld.c cbrt.c \
|
/dragonfly/sbin/newfs/ |
H A D | mkfs.c | 273 if (!powerof2(sblock.fs_bsize)) { in mkfs() 278 if (!powerof2(sblock.fs_fsize)) { in mkfs() 330 if (!powerof2(sblock.fs_ntrak)) in mkfs()
|
/dragonfly/sys/platform/pc64/icu/ |
H A D | icu_abi.c | 461 KASSERT(powerof2(count), ("count %d is not power of 2", count)); in icu_abi_msi_alloc_intern()
|
/dragonfly/sys/platform/pc64/x86_64/ |
H A D | amd64_mem.c | 65 powerof2((len)) && /* ... and power of two */ \
|
/dragonfly/sys/dev/disk/mpt/ |
H A D | mpt_raid.c | 1136 powerof2(vol_pg->VolumeSettings.HotSparePool) in mpt_announce_vol() 1232 powerof2(disk_pg->PhysDiskSettings.HotSparePool) in mpt_announce_disk()
|
/dragonfly/sys/dev/virtual/virtio/virtio/ |
H A D | virtqueue.c | 158 } else if (!powerof2(size)) { in virtqueue_alloc()
|
/dragonfly/sys/netinet/ |
H A D | tcp_subr.c | 325 CTASSERT(powerof2(TCBHASHSIZE)); 384 if (!powerof2(hashsize)) { in tcp_init()
|
H A D | tcp_syncache.c | 344 if (!powerof2(tcp_syncache.hashsize)) { in syncache_init()
|
H A D | udp_usrreq.c | 176 CTASSERT(powerof2(UDBHASHSIZE));
|
/dragonfly/usr.sbin/mptutil/ |
H A D | mpt_config.c | 641 (!powerof2(stripe_size))) { in create_volume()
|
/dragonfly/usr.sbin/mfiutil/ |
H A D | mfi_config.c | 608 if ((stripe_size < 512) || (!powerof2(stripe_size))) { in create_volume()
|
/dragonfly/sys/platform/pc64/apic/ |
H A D | ioapic_abi.c | 1257 KASSERT(powerof2(count), ("count %d is not power of 2", count)); in ioapic_abi_msi_alloc_intern()
|
/dragonfly/sys/bus/cam/scsi/ |
H A D | scsi_sa.c | 1210 if (powerof2(count)) { in saioctl() 2217 if (powerof2(softc->media_blksize)) { in samount()
|