Search Linux Wireless

Re: [PATCH] bitfield: add FIELD_PREP_CONST()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2023-01-18 at 19:21 +0100, Alexander Lobakin wrote:
> > So you could pull out the expression "((n) & ((n) - 1)) != 0" from all
> > four of these, but it doesn't feel worth it.
> 
> Aaaah I see.
> 
> __BUILD_BUG_ON_NOT_POWER_OF_2_ZERO() then? :D
> 
> (mostly joking and not sure it's worth it, up to you)
> 

Yeah exactly! I briefly considered but didn't really want to touch
build_bug.h for basically nothing :)

johannes




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux