From: "H. Peter Anvin" <hpa@zytor.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-arch <linux-arch@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: The type of bitops
Date: Mon, 06 May 2013 18:36:32 -0700 [thread overview]
Message-ID: <51885AA0.4090807@zytor.com> (raw)
In-Reply-To: <CA+55aFzwjQ03ZA71rgKMhCqh_+1fcMbPJUK3upcOacX2F8+Z9A@mail.gmail.com>
On 05/06/2013 05:51 PM, Linus Torvalds wrote:
>
>> 4. Do some macro hacks so the bitops are dependent on the size of the
>> argument.
>
> That sounds insane. Just *how* could the size of the argument even
> matter? Seriously, there's no *difference* between a 32-bit or a
> 64-bit index. The code is the same, there's no possible reason to make
> it be different.
>
The only reason on x86 would be to avoid the REX prefix. Hardly worth
it, though.
-hpa
next prev parent reply other threads:[~2013-05-07 1:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-06 23:53 The type of bitops H. Peter Anvin
2013-05-06 23:53 ` H. Peter Anvin
2013-05-07 0:51 ` Linus Torvalds
2013-05-07 1:36 ` H. Peter Anvin [this message]
2013-05-07 2:33 ` Linus Torvalds
2013-05-07 2:33 ` Linus Torvalds
2013-05-07 23:17 ` Andy Lutomirski
2013-05-07 23:17 ` Andy Lutomirski
2013-05-07 23:18 ` H. Peter Anvin
2013-05-07 23:18 ` H. Peter Anvin
2013-05-07 23:36 ` Andy Lutomirski
2013-05-07 23:36 ` Andy Lutomirski
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=51885AA0.4090807@zytor.com \
--to=hpa@zytor.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
/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