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

roedy@BIX.com (Roedy Green)
Wed, 30 Nov 1994 06:21:44 GMT

          From comp.compilers

Related articles
[8 earlier articles]
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)
Re: Why is using single-precision slower than using double-precision kenneta@hubcap.clemson.edu (1994-11-23)
Re: Why is using single-precision slower than using double-precision dik@cwi.nl (1994-11-24)
Re: Why is using single-precision slower than using double-precision davidc@panix.com (David B. Chorlian) (1994-11-24)
Re: Why is using single-precision slower than using double-precision roedy@BIX.com (1994-11-30)
Re: Why is using single-precision slower than using double-precision tgl@netcom.com (1994-11-30)
Re: Why is using single-precision slower than using double-precision hebert@prism.uvsq.fr (1994-11-24)
Re: Why is using single-precision slower than using double-precision dekker@dutiag.twi.tudelft.nl (Rene Dekker) (1994-11-30)
Re: Why is using single-precision slower than using double-precision meissner@osf.org (1994-11-24)
| List of all articles for this month |

Newsgroups: comp.parallel,comp.compilers
From: roedy@BIX.com (Roedy Green)
Keywords: arithmetic
Organization: Canadian Mind Products
References: <3aqv5k$e27@monalisa.usc.edu> <3b0q3g$i88@panix.com>
Date: Wed, 30 Nov 1994 06:21:44 GMT

>The above code verges on inaccuracy by keeping an index variable as
>a floating point number and incrementing it by a floating point
>number. Systematic error is introduced into such an index variable if the


In general that is the case, especially when he constants 0.1 or 0.01 are
used to increment. However in IEEE floating point format, pure integers
add to give pure integers if they don't get too big. So the code shown
would work correctly on a machine with IEEE representation.


Roedy@bix.com
-30-
--


Post a followup to this message

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