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/