[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180706145753.b186b0b22d9c55744b77f385@linux-foundation.org>
Date: Fri, 6 Jul 2018 14:57:53 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Chris Wilson <chris@...is-wilson.co.uk>
Cc: linux-kernel@...r.kernel.org,
Jani Nikula <jani.nikula@...ux.intel.com>,
Andy Gospodarek <gospo@...adcom.com>,
"David S . Miller" <davem@...emloft.net>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...nel.org>
Subject: Re: [PATCH] bitops: Introduce BITS_PER_TYPE
On Fri, 6 Jul 2018 10:44:58 +0100 Chris Wilson <chris@...is-wilson.co.uk> wrote:
> net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the
> number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the
> macro to bitops.h, alongside BITS_PER_BYTE, for wider usage.
A bit of grepping shows that there's quite a lot of code which does
sizeof(blah)*BITS_PER_BYTE. Fun newbie project.
Powered by blists - more mailing lists