Re: Looking for software implementation of integer div, rem, mod

hbaker@netcom.com (Henry Baker)
Mon, 23 Oct 1995 16:40:05 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: hbaker@netcom.com (Henry Baker)
Keywords: arithmetic
Organization: nil organization
References: 95-10-074
Date: Mon, 23 Oct 1995 16:40:05 GMT

lehotsky@mc.com (Alan Lehotsky) wrote:


> 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).


You might look at


ftp://ftp.netcom.com/pub/hb/hbaker/AB-mod-N.html (also .ps.Z)


--
www/ftp directory:
ftp://ftp.netcom.com/pub/hb/hbaker/home.html
--


Post a followup to this message

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