Xref: utzoo comp.lang.c++:2115 comp.lang.c:14362 comp.lang.forth:668 comp.lang.fortran:1534 comp.lang.misc:2190 comp.arch:7351
Path: utzoo!utgpu!watmath!clyde!att!ucbvax!hplabs!nsc!taux01!cjosta
From: cjosta@taux01.UUCP (Jonathan Sweedler)
Newsgroups: comp.lang.c++,comp.lang.c,comp.lang.forth,comp.lang.fortran,comp.lang.misc,comp.arch
Subject: Re: Assembly or ....
Message-ID: <949@taux01.UUCP>
Date: 29 Nov 88 11:39:15 GMT
References: <1388@aucs.UUCP| <729@convex.UUCP> <1961@crete.cs.glasgow.ac.uk> <8993@smoke.BRL.MIL> <1032@l.cc.purdue.edu> <8938@winchester.mips.COM>
Reply-To: cjosta@taux01.UUCP (Jonathan Sweedler)
Organization: National Semiconductor (Israel) Ltd.
Lines: 19

In article <8938@winchester.mips.COM> mash@mips.COM (John Mashey) writes:
|In article <1032@l.cc.purdue.edu> cik@l.cc.purdue.edu (Herman Rubin) writes:
|...
|> suppose we want to
|>divide a by b, obtaining an integer result i and a remainder c.  I know
|>of no machine with this instruction, and this is not that unusual an 
|>instruction to demand.  It is cheap in hardware, and extremely expensive
|>in software--at least 4 instructions.
|
|Although I don't necessarily subscribe to Herman's opinions, R2000 divides
|actually do this (leave both results in registers).  

The 32000 series has a DEI (Divide Extended Integer) instruction that
also does this. 

-- 
Jonathan Sweedler  ===  National Semiconductor Israel
UUCP:    ...!{amdahl,hplabs,decwrl}!nsc!taux01!cjosta
Domain:  cjosta@taux01.nsc.com