| 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
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.