delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/18/21:23:41

Message-ID: <36F185AB.DBB83340@devnull.com>
Date: Thu, 18 Mar 1999 15:00:59 -0800
From: Kagenin <kagenin AT devnull DOT com>
Organization: ShadowTek Software
X-Mailer: Mozilla 4.5 [en] (Win95; U)
X-Accept-Language: en,de
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Fixed Point math
References: <zAeI2.14708$134 DOT 144669 AT tor-nn1 DOT netcom DOT ca>
NNTP-Posting-Host: 216.119.29.114
X-NNTP-Posting-Host: 216.119.29.114
X-Trace: 18 Mar 1999 23:35:45 -0800, 216.119.29.114
Lines: 27
X-NNTP-Posting-Host: 209.63.224.240
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

John Carbrey wrote:
> 
> A friend of mine has informed me that floating point math is faster than
> fixed point math in pentiums.
> 
> He told me that I should use floats not fixed data types.
> 
> Is this true?
> 
> Yt,
> 
> John Carbrey

No.  On almost all chips, integer math is faster than floating point. 
Plus, you can't use comparison operators on floats and doubles, as well
as you increase float underflow errors.

Your friend doesn't seem to know what he's talking about.

Kagenin

-- 
"When the Going gets Weird, The Weird turn Pro."
Hunter S. Thompson

ICQ #25225491
AIM ID Kagenin Z

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019