Xref: utzoo comp.arch:10580 comp.lang.misc:3064 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bionet!ames!haven!vrdxhq!bms-at!stuart From: stuart@bms-at.UUCP (Stuart Gathman) Newsgroups: comp.arch,comp.lang.misc Subject: Re: Double Width Integer Multiplication and Division Summary: So what's the big deal? Message-ID: <167@bms-at.UUCP> Date: 10 Jul 89 23:54:02 GMT References: <57125@linus.UUCP> <1989Jun24.230056.27774@utzoo.uucp> <1395@l.cc.purdue.edu> Organization: Business Management Systems, Inc., Fairfax, VA Lines: 12 [ previous poster wants "q,r = x/y" to assign quotient to q, remainder to r ] Even on fairly stupid compilers, q = x / y; r = x % y; results in what you want (unless x & y have side effects - in that case assign to temporaries). In the absence of branches, even simple CSE is amazingly good. -- Stuart D. Gathman <..!{vrdxhq|daitc}!bms-at!stuart>