> > > I need an unsigned divide, but could live with a signed divide as > > > the magnitude of numbers I am working with are less than 2^30. > > > Remainder or lack of is not critical. If I need it I could derive a > > > remainder externally to the routine. > > > > This is discussed in Section 9-2 of Hacker's Delight, 2nd edition. It > > is a page and a half of C code. > > > > >From the book: "The details are surprisingly complicated." > > > > You can read the code if go to the book's page at Amazon and "search > > inside this book" for "Multiword Division". But buy the book if you ca= n. >=20 > Looks like you can download the code at http://www.hackersdelight.org/ Further to that, scroll down the web page to where it talks about downloadi= ng the revisions that convert a first edition to second edition. One of the= sections in the download appears to be a new section 9-5 'Doubleword divis= ion from Long Division'.=20 --=20 Scanned by iCritical. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .