On Wed, 4 Jul 2001, David Edelsohn wrote:
You do not seem to have understood my reply. I will repeat the
important sentence:
SHIFT IS NOT THE SAME AS DIVIDE FOR SIGNED INTEGERS.
Indeed. That's why you have `logical shift right' and `arithmetic shift right'.
The former inserts zeroes, the latter inserts a copy of the MSB.
Don't know from memory whether PPC has them...
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: David Edelsohn <redacted>
Subject: Re: __divdi3 unresolved + X pointer blocks
Date: Thu, 5 Jul 2001 10:13:16 +0200 (CEST)
cc: Kaoru Fukui <redacted>, Jean-Jacques.Levy@inria.fr,Benjamin
Herrenschmidt [off-list ref],linuxppc-dev@lists.linuxppc.org
On Wed, 4 Jul 2001, David Edelsohn wrote:
quoted
You do not seem to have understood my reply. I will repeat the
important sentence:
SHIFT IS NOT THE SAME AS DIVIDE FOR SIGNED INTEGERS.
Indeed. That's why you have `logical shift right' and `arithmetic shift right
'.
The former inserts zeroes, the latter inserts a copy of the MSB.
Don't know from memory whether PPC has them...
Thanks your explain.
I alway used them when Z80 Assmble probramming ,long long time ago -:)
Kaoru
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/