mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Axel Weiß" <aweiss@informatik.hu-berlin.de>
To: linux-kernel@vger.kernel.org
Subject: Re: linux-2.4.26 released
Date: Wed, 21 Apr 2004 10:25:05 +0200	[thread overview]
Message-ID: <200404211025.05319.aweiss@informatik.hu-berlin.de> (raw)
In-Reply-To: <20040421045344.GJ596@alpha.home.local>

Am Mittwoch, 21. April 2004 06:53 schrieb Willy Tarreau:
> Hi William,
>
> On Tue, Apr 20, 2004 at 04:23:12PM -0700, William Lee Irwin III wrote:
> > -		return (mps_cpu/4)*16 + (1<<(mps_cpu%4));
> > +		return (mps_cpu & ~0x3) << 2 | 1 << (mps_cpu & 0x3);
>
>                                         ^^^^
> I think you wanted to put '<< 4' here instead of '<< 2'.

No, the above is correct (at least equivalent):
	(x / 4) * 16 =
	(x >> 2) << 4 =
	(x & ~3) << 2

Regards,
Axel

-- 
Humboldt-Universität zu Berlin
Institut für Informatik
Signalverarbeitung und Mustererkennung
Dipl.-Inf. Axel Weiß
Rudower Chaussee 25
12489 Berlin-Adlershof
+49-30-2093-3050


  reply	other threads:[~2004-04-21  8:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-14 13:14 Marcelo Tosatti
2004-04-20 23:23 ` William Lee Irwin III
2004-04-21  4:53   ` Willy Tarreau
2004-04-21  8:25     ` Axel Weiß [this message]
2004-04-21 10:12     ` William Lee Irwin III
2004-04-21 10:42       ` Willy Tarreau

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=200404211025.05319.aweiss@informatik.hu-berlin.de \
    --to=aweiss@informatik.hu-berlin.de \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®