Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!decvax!tektronix!tekcrl!tekgvs!toma From: toma@tekgvs.TEK.COM (Tom Almy) Newsgroups: comp.lang.c,comp.misc Subject: Re: 32bit = 16bit x 16bit (Really: Compiler deficiencies) Message-ID: <2809@tekgvs.TEK.COM> Date: Wed, 28-Oct-87 13:19:04 EST Article-I.D.: tekgvs.2809 Posted: Wed Oct 28 13:19:04 1987 Date-Received: Sat, 31-Oct-87 14:47:08 EST References: <141@kesmai.COM> <7349@alice.UUCP> <146MAXHAM@RICE> <593@l.cc.purdue.edu> <2998@aw.sei.cmu.edu> Reply-To: toma@tekgvs.UUCP (Tom Almy) Organization: Tektronix, Inc., Beaverton, OR. Lines: 16 Xref: mnetor comp.lang.c:5199 comp.misc:1548 (I don't have the original article) In article <593@l.cc.purdue.edu> cik@l.cc.purdue.edu (Herman Rubin) writes: >A general problem with HLL's is that they do not have the necessary >flexibility to handle situations like this. I do not know of any language >which has in its operation list an operation to multiply two 16 bit object >and get a 32 bit object. Forth does. It also provides a 32 bit by 16 bit divide operation, a multiply divide function (a*b/c) combining these two for scaled integer arithmetic, and a divide function returning both quotient and remainder. Tom Almy Tektronix, Inc. toma@tekgvs.TEK.COM