Re: Why is using single-precision slower than using double-precision

joelw@convex.convex.com (Joel Williamson)
Wed, 23 Nov 1994 21:58:43 GMT

          From comp.compilers

Related articles
Why is using single-precision slower than using double-precision zxu@monalisa.usc.edu (1994-11-23)
Re: Why is using single-precision slower than using double-precision weaver@weitek.COM (1994-11-23)
Re: Why is using single-precision slower than using double-precision meissner@osf.org (1994-11-23)
Re: Why is using single-precision slower than using double-precision scott@cs.arizona.edu (1994-11-23)
Re: Why is using single-precision slower than using double-precision joelw@convex.convex.com (1994-11-23)
Re: Why is using single-precision slower than using double-precision koppel@omega.ee.lsu.edu (1994-11-23)
Re: Why is using single-precision slower than using double-precision bevan@cs.man.ac.uk (1994-11-23)
Re: Why is using single-precision slower than using double-precision luigi@paris.CS.Berkeley.EDU (1994-11-23)
Re: Why is using single-precision slower than using double-precision davidm@Rational.COM (1994-11-23)
Re: Why is using single-precision slower than using double-precision dsmentek@hpfcla.fc.hp.com (1994-11-23)
Re: Why is using single-precision slower than using double-precision trobey@taos.arc.unm.edu (1994-11-23)
[8 later articles]
| List of all articles for this month |
Newsgroups: comp.parallel,comp.arch,comp.compilers
From: joelw@convex.convex.com (Joel Williamson)
Status: R
Originator: rmuise@dragon.acadiau.ca
Organization: Engineering, Convex Computer Corporation, Richardson, Tx USA
References: <3aqv5k$e27@monalisa.usc.edu>
Date: Wed, 23 Nov 1994 21:58:43 GMT

In article <3aqv5k$e27@monalisa.usc.edu>,
Zhiwei Xu <zxu@monalisa.usc.edu> wrote:
>Can any one explain why a C program using single precision (float) is slower
>that the same code using double precision (double)?


Because all floating point arithmetic is done in double precision in C.
You're paying to convert results to single.


Joel Williamson
--









Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.