>> I still hope I am overlooking some obvious way to do the division >>using the divide 32/32 plus a couple of shifts (like left-normalizing >>the dividend and then right shifting back the quotient or something). >>The PPC does not seem to have 'fractional division' in the sense, say, >>the HC11 has (dividend*2^32/divisor would be OK for me, if I had it). > >Can you... >divide the high 32 by divisor, shift the quotient and remainder 32 bits >left, add the low 32 to the shifted remainder, divide again, and sum the >quotient with the shifted quotient? (Hope I got the terms right!) > >Obviously, there's a potential overflow when summing the shifted remainder >and the low 32 bits. Nevermind...that's obviously not gonna work, 'cause you're back to the 64/32 bit divide again. Sorry, guess I shouldn't try to do mental math first thing in the morning. newell
Message
Re: [68300] 64/32 division - repost with another From:
2003-02-11 by Scott Newell
Attachments
- No local attachments were found for this message.