> > 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. >=20 > This is discussed in Section 9-2 of Hacker's Delight, 2nd edition. It is= a page and > a half of C code. >=20 > >From the book: "The details are surprisingly complicated." >=20 > You can read the code if go to the book's page at Amazon and "search insi= de this > book" for "Multiword Division". But buy the book if you can. Looks like you can download the code at http://www.hackersdelight.org/ --=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 .