Assembly or ....

Jonathan Sweedler cjosta at taux01.UUCP
Tue Nov 29 21:39:15 AEST 1988


In article <8938 at winchester.mips.COM> mash at mips.COM (John Mashey) writes:
|In article <1032 at l.cc.purdue.edu> cik at 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 at taux01.nsc.com



More information about the Comp.lang.c mailing list