From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,94b6222e337d2ab8 X-Google-Attributes: gid111c93,public From: Robert Harley Subject: Re: Alpha's floating point performance Date: 1998/11/19 Message-ID: #1/1 X-Deja-AN: 413573656 Content-Transfer-Encoding: 8bit References: <3643A2A1.DECD63A@cs.sunysb.edu> <3653768C.FD9D4815@west.net> <72vvv9$kac$1@tesla.EECS.Berkeley.EDU> <731iaq$lsc$1@tesla.EECS.Berkeley.EDU> Content-Type: text/plain; charset=iso-8859-1 Organization: I.N.R.I.A Rocquencourt Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha 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. Rob.