powerpc: Fix a corner case in __div64_32
authorPaul Mackerras <paulus@samba.org>
Wed, 19 Oct 2005 23:37:02 +0000 (09:37 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 19 Oct 2005 23:37:02 +0000 (09:37 +1000)
commit344480b99730bfd205e306d3fd168cdcebe83425
tree43e3d75779307d9ee36f001718efe6ef6fa220d3
parenta4bcc95a3ad0ccba6d7b39442dfb81cc57bb7121
powerpc: Fix a corner case in __div64_32

The code was incorrectly doing a division by 0 in the case where
the denominator was 0x100000000 and the divisor was 0xffffffff.
Thanks to Fred Liu of Motorola for pointing this out.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/lib/div64.S