powerof2
if (!powerof2(n)) {
nmw_power2 = powerof2(nmaskwords);
!powerof2(boot->bpbBytesPerSec)) {
if (boot->bpbSecPerClust == 0 || !powerof2(boot->bpbSecPerClust)) {
if (!powerof2(sblock.fs_bsize)) {
if (!powerof2(sblock.fs_fsize)) {
if (!powerof2(sblock.fs_ntrak))
getsize(const char *str, int powerof2)
if ((powerof2 & 1) && (val ^ (val - 1)) != ((val << 1) - 1)) {
if ((powerof2 & 2) && (val & HAMMER_BUFMASK)) {
getsize(const char *str, int64_t minval, int64_t maxval, int powerof2)
if ((powerof2 & 1) && (val ^ (val - 1)) != ((val << 1) - 1)) {
if ((powerof2 & 2) && (val & HAMMER2_NEWFS_ALIGNMASK)) {
!powerof2(bpb.bpbBytesPerSec)) {
if (!powerof2(o.block_size)) {
if (!powerof2(o.sectors_per_cluster)) {
static_assert(powerof2(MAXBPS), "MAXBPS is not power of 2");
assert(powerof2(chunksize));
if (powerof2(count)) {
if (powerof2(softc->media_blksize)) {
KASSERT(count != 0 && count <= 32 && powerof2(count),
if (powerof2(xfer->max_frame_size)) {
powerof2(vol_pg->VolumeSettings.HotSparePool)
powerof2(disk_pg->PhysDiskSettings.HotSparePool)
if (pages <= 0 || pages > TX_PAGES_MAX || !powerof2(pages)) {
if (pages <= 0 || pages > RX_PAGES_MAX || !powerof2(pages)) {
if (powerof2(queue_size) != 0)
} else if (!powerof2(size)) {
if (new_val > 0 && ((new_val > 16 * PAGE_SIZE) || !powerof2(new_val)))
if (powerof2(size))
if (size == 0 || powerof2(size))
CTASSERT(powerof2(SBUF_MAXEXTENDSIZE));
CTASSERT(powerof2(SBUF_MAXEXTENDINCR));
CTASSERT(powerof2(TCBHASHSIZE));
if (!powerof2(hashsize)) {
if (!powerof2(tcp_syncache.hashsize)) {
CTASSERT(powerof2(UDBHASHSIZE));
CTASSERT(powerof2(IEEE80211_NODE_HASHSIZE));
KASSERT(powerof2(count), ("count %d is not power of 2", count));
KASSERT(powerof2(count), ("count %d is not power of 2", count));
powerof2((len)) && /* ... and power of two */ \
if (!powerof2(sblock.fs_bsize)) {
if (!powerof2(sblock.fs_fsize)) {
if (maxbsize < bsize || !powerof2(maxbsize)) {
if ((stripe_size < 512) || (!powerof2(stripe_size))) {
(!powerof2(stripe_size))) {