[PATCH] fork_init: fix division by zero

Paul Mackerras paulus at samba.org
Thu Dec 11 08:50:20 EST 2008


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.



More information about the Linuxppc-dev mailing list