www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/26/07:20:23

Xref: news2.mv.net comp.os.msdos.djgpp:5397
From: stwand07 AT uctvms DOT uct DOT ac DOT za
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Fixed point mathy
Date: 26 Jun 96 09:14:13 +0200
Organization: University of Cape Town
Lines: 18
Message-ID: <1996Jun26.091413@uctvms.uct.ac.za>
References: <Pine DOT GSO DOT 3 DOT 94 DOT 960625013434 DOT 2111A-100000 AT zippy>
NNTP-Posting-Host: uctvms.uct.ac.za
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <Pine DOT GSO DOT 3 DOT 94 DOT 960625013434 DOT 2111A-100000 AT zippy>, Samuel Vincent <svincent AT cs DOT sonoma DOT edu> writes:
> On Tue, 25 Jun 1996, Eli Zaretskii wrote:
> 
> I am curious.  Is there any reason long long ints are not used for fixed
> point math?  It would provide 64 bits of precision..  Making a 32.32
> possible...
> 
> -Sam
> 
> 
I think 16.16 is faster since it fits into one register, and is accurate enough
for most games, which is what Allegro is primarily intended for. 16.16 gives an
accuracy of 1/65536. I would suggest that if you need 32-bit accuracy, you may
as well stick with floats and the emulator if you have no FPU.

Adios
Mark Wodrich.

- Raw text -


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