Xref: utzoo sci.math:9076 comp.arch:12860 comp.lang.c:24704 comp.sources.wanted:9912 Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!philmtl!philabs!linus!bs From: bs@linus.UUCP (Robert D. Silverman) Newsgroups: sci.math,comp.arch,comp.lang.c,comp.sources.wanted Subject: Integer Multiply/Divide on Sparc Message-ID: <84768@linus.UUCP> Date: 22 Dec 89 19:14:47 GMT Reply-To: bs@linus.mitre.org (Robert D. Silverman) Organization: The MITRE Corporation, Bedford MA Lines: 23 Does any have, of know of software for the SPARC [SUN-4] that will perform the following: (1) Multiply two unsigned 32-bit integers, yielding a 64 bit product stored in two registers? (2) Take a 64 bit product and divide it by a 32 bit (unsigned) integer yielding a 32-bit quotient and remainder? or (3) Compute A*B Mod C directly? The SPARC is brain dead [as were its designers] when it comes to doing integer arithmetic. It can't multiply and it can't divide. Trying to convert to floating point, do the arithmetic, then convert back is far too slow. (I've already tried). -- Bob Silverman #include Internet: bs@linus.mitre.org; UUCP: {decvax,philabs}!linus!bs Mitre Corporation, Bedford, MA 01730