Looking for software implementation of integer div, rem, mod

lehotsky@mc.com (Alan Lehotsky)
Thu, 12 Oct 1995 13:48:12 GMT

          From comp.compilers

Related articles
Looking for software implementation of integer div, rem, mod lehotsky@mc.com (1995-10-12)
Re: Looking for software implementation of integer div, rem, mod ddunfield@BIX.com (1995-10-22)
Re: Looking for software implementation of integer div, rem, mod hbaker@netcom.com (1995-10-23)
| List of all articles for this month |
Newsgroups: comp.arch,comp.compilers,gnu.gcc.help
From: lehotsky@mc.com (Alan Lehotsky)
Keywords: arithmetic, question, comment
Organization: Mercury Computer Systems, Inc.
Date: Thu, 12 Oct 1995 13:48:12 GMT

I'm looking for a software implementation of 32/32 divide, with and
without remainder and modulus.


C code is preferred. An implementation that uses only
shifts, adds (and/or multiplies) would be ideal. The chip I'm working
with has no divide assists (except for single-precision float, where
it has the ability to compute an inverse).


I already checked the math software archives at netlib, et al.


Thanks in advance
-- Al Lehotsky
[There's always the ones in Knuth. -John]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.