Messages in this thread | | | Date | Thu, 11 Dec 2008 08:50:20 +1100 | From | Paul Mackerras <> | Subject | Re: Re[2]: [PATCH] fork_init: fix division by zero |
| |
David Howells writes:
> Ummm... On powerpc, I believe rotate-left would be a division as it does the > bit-numbering and the bit direction the opposite way to more familiar CPUs > such as x86.
No. :)
"Left" and "right" are relative to the way those of us humans in the Western European cultural tradition write numbers, which is big-endian. So rotate-left always moves bits towards the more significant end of the word.
Paul.
| |