From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: AMD processors and assembly language Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <01JMWIIY2ZT69ASSJ4 AT SLU DOT EDU> <83zos3d82q DOT fsf AT mercury DOT st DOT hmc DOT edu> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 41 X-Trace: +ryjt7RbQ22DyNO8MgV0Ttx6BLp4ElID56K1/n8B6XgZ8n3sYmIQpb4PXc/hg0CRsnjAohxLwoVy!Jb58e9qH7hq+MhGaEhDX/laispJZMftD5QT2jtN/6KTKToM69h2lBaH29HuISozjLq5pEKhMxS1P!qAS3E10= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Mon, 13 Mar 2000 11:53:24 GMT Distribution: world Date: Mon, 13 Mar 2000 11:53:24 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On 12 Mar 2000 16:31:25 -0800, Nate Eldredge wrote: >Damian Yerrick writes: > >> On Sat, 11 Mar 2000 10:22:23 -0600 (CST), GAMMELJL AT SLU DOT EDU wrote: >> >> > In high precision arithmetic, the assembly language commands >> >mul, div, and adc are essential. In the 486 architecture, these >> >commands are efficient. In the alpha architecture, they do not exist. >> >> WTF? Compaq's Alpha doesn't have multiply, divide, and add? > >According to the Alpha Architecture Handbook >(ftp://ftp.digital.com/pub/Digital/info/semiconductor/literature/alphaahb.pdf), >there is no integer divide instruction, and no add-with-carry >instruction. The Alpha does have an integer multiply instruction, and >also a floating-point divide. Then it's flawed. How is an arbitrary precision math library supposed to work on Alpha without add-with-carry? >That's what RISC is about. :) Is it about slow workarounds such as "convert numerator to floating point, convert denominator to floating point, divide, separate into integer and fractional parts, convert to integer, multiply fractional part by divisor, convert to integer" just to get a / b? In some cases, this slowdown defeats the purpose of running on an Alpha. PowerPC (Performance Optimization With Enhanced RISC) has an integer divide instruction, but this is swinging way offtopic. -- Damian Yerrick http://yerricde.tripod.com/ Comment on story ideas: http://home1.gte.net/frodo/quickjot.html AOL is sucks! Find out why: http://anti-aol.org/faqs/aas/ View full sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your .sig to prevent the spread of .sig viruses. http://www.mcafee.com/