From: andi@complang.tuwien.ac.at (Andreas Krall)
Subject: Re: Alpha's floating point performance
Date: 1998/11/19 [thread overview]
Message-ID: <7325lu$554$1@news.tuwien.ac.at> (raw)
In-Reply-To: rz7lnl7effx.fsf@corton.inria.fr
In article <rz7lnl7effx.fsf@corton.inria.fr>,
Robert Harley <harley@corton.inria.fr> writes:
>
> peterm@tesla.EECS.Berkeley.EDU (Peter Mardahl) writes:
>>Alpha has hardware instructions for dealing with single precision.
>>I think you're right in that the same execution units are used for all
>>precisions, but I suspect that the execution units are organized in
>>such a way that either there is no conversion needed, or conversion is
>>so fast that the ops are no slower.
>
> That's about it. Single-precision numbers are "expanded" into
> numerically equivalent double-precision ones in the floating-point
> registers. Each f.-p. operation specifies whether the result is to be
> single or double precision, which affects rounding, exponent checking
> etc.
>
> I'm not quite sure what happens if you ask for a single precision
> result operating on double-precision quantities that are not equal to
> expanded single-precision ones, though.
>
The Alpha manual tells:
Single-precision operations applied to canonical single-precision values
give single-precision results. Single-precision operations applied to
non-canonical operands give UNPREDICTABLE results.
No conversion from single to double is needed, since both use the same
representation in a register. A double has to be converted to a single
and this instruction (CVTTS) can throw exeptions.
Single and double adds/muls have the same latency (4 cycles 164, 6 cycles
on the 064). The latency for a div is different (064: single 30/34, double
59/63; 164: single 15-31, double 22-60). If you use singles instead of
doubles you can reduce cache trashing.
Andi
P.S: I hate all the floating point stuff, especially if you have to
implement JVM compatible IEEE arithmetic :-).
--
andi@complang.tuwien.ac.at Andreas Krall
http://www.complang.tuwien.ac.at/andi/ Inst. f. Computersprachen, TU Wien
tel: (+431) 58801/18511 Argentinierstr. 8/4/1851
fax: (+431) 58801/18598 A-1040 Wien AUSTRIA EUROPE
next prev parent reply other threads:[~1998-11-19 5:00 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-06 5:00 Alpha's floating point performance Vladimir Filkov
1998-11-07 5:00 ` Nick Manka
1998-11-07 5:00 ` C.Simmendinger
1998-11-07 5:00 ` Greg Lindahl
1998-11-07 5:00 ` Kerstin Hoef-Emden
1998-11-09 5:00 ` Adam C. Powell, IV
1998-11-09 5:00 ` Tracy R Reed
1998-11-09 5:00 ` Adam C. Powell, IV
1998-11-10 5:00 ` Adam C. Powell, IV
1998-11-10 5:00 ` IX Corp.
1998-11-17 5:00 ` Randall Parker
1998-11-17 5:00 ` Joachim Wesner
1998-11-18 5:00 ` Randall Parker
1998-11-18 5:00 ` Peter Mardahl
1998-11-19 5:00 ` Ian Tester
1998-11-19 5:00 ` Peter Mardahl
1998-11-19 5:00 ` Robert Harley
1998-11-19 5:00 ` Andreas Krall [this message]
1998-11-19 5:00 ` Toon Moene
[not found] ` <199811200036.AA23893@tesla.EECS.Berkeley.EDU>
1998-11-20 5:00 ` Ian Tester
1998-11-20 5:00 ` Ian Tester
1998-11-21 5:00 ` Alpha's floating point performance -> single vs. double Joachim Wesner
1998-11-23 5:00 ` Alpha's floating point performance Jack W. Crenshaw
1998-11-23 5:00 ` H.W. Stockman
1998-11-23 5:00 ` Peter Mardahl
1998-11-24 5:00 ` Jack W. Crenshaw
1998-11-24 5:00 ` Olaf Schnapauff
1998-11-25 5:00 ` Jack W. Crenshaw
1998-11-25 5:00 ` Aaron Spink
1998-11-25 5:00 ` Jack W. Crenshaw
1998-11-10 5:00 ` bmeyer
1998-11-11 5:00 ` Kerstin Hoef-Emden
1998-11-13 5:00 ` Phil
1998-11-13 5:00 ` Kerstin Hoef-Emden
1998-11-13 5:00 ` Murx
1998-11-13 5:00 ` Joachim Wesner
1998-11-13 5:00 ` Murx
1998-11-13 5:00 ` Murx
1998-11-11 5:00 ` H.W. Stockman
1998-11-11 5:00 ` Greg Lindahl
1998-11-09 5:00 ` Doug Rosser
1998-11-10 5:00 ` bxfqoxog
1998-11-10 5:00 ` energized
1998-11-11 5:00 ` Conrad Sanderson
1998-11-11 5:00 ` Greg Lindahl
1998-11-11 5:00 ` Conrad Sanderson
1998-11-11 5:00 ` bmeyer
1998-11-11 5:00 ` Integer performance (was Re: Alpha's floating point performance) S S Sturrock
1998-11-12 5:00 ` Murx
1998-11-15 5:00 ` Alpha's floating point performance Andy Isaacson
1998-11-16 5:00 ` Murx
1998-11-16 5:00 ` Joachim Wesner
1998-11-16 5:00 ` Murx
1998-11-16 5:00 ` Murx
1998-11-17 5:00 ` Joachim Wesner
1998-11-17 5:00 ` Murx
1998-11-17 5:00 ` Murx
1998-11-27 5:00 ` Anders Blicher Petersen
1998-11-16 5:00 ` Vinhthuy Phan
1998-11-16 5:00 ` Murx
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox