mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: linux-kernel@vger.kernel.org,
	Jani Nikula <jani.nikula@linux.intel.com>,
	Andy Gospodarek <gospo@broadcom.com>,
	"David S . Miller" <davem@davemloft.net>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@kernel.org>
Subject: Re: [PATCH] bitops: Introduce BITS_PER_TYPE
Date: Fri, 6 Jul 2018 14:57:53 -0700	[thread overview]
Message-ID: <20180706145753.b186b0b22d9c55744b77f385@linux-foundation.org> (raw)
In-Reply-To: <20180706094458.14116-1-chris@chris-wilson.co.uk>

On Fri,  6 Jul 2018 10:44:58 +0100 Chris Wilson <chris@chris-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.

      parent reply	other threads:[~2018-07-06 21:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-06  9:44 Chris Wilson
2018-07-06 10:03 ` Jani Nikula
2018-07-06 17:48 ` Randy Dunlap
2018-07-06 17:51   ` Chris Wilson
2018-07-06 17:55     ` Randy Dunlap
2018-07-06 18:00       ` Chris Wilson
2018-07-06 18:38         ` Randy Dunlap
2018-07-06 21:57 ` Andrew Morton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180706145753.b186b0b22d9c55744b77f385@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=chris@chris-wilson.co.uk \
    --cc=davem@davemloft.net \
    --cc=gospo@broadcom.com \
    --cc=jani.nikula@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®