delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/25/18:41:48

Xref: news2.mv.net comp.os.msdos.djgpp:5370
From: locke AT mcs DOT net (Peter Johnson)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Fixed point math
Date: Tue, 25 Jun 1996 17:50:24 GMT
Organization: BiLogic
Lines: 40
Message-ID: <31d026a2.3304948@news.mcs.net>
References: <Pine DOT GSO DOT 3 DOT 94 DOT 960625013434 DOT 2111A-100000 AT zippy>
NNTP-Posting-Host: locke.pr.mcs.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Tue, 25 Jun 1996 08:35:40 GMT, Samuel Vincent
<svincent AT cs DOT sonoma DOT edu> wrote:

>On Tue, 25 Jun 1996, Eli Zaretskii wrote:
>
>> On Mon, 24 Jun 1996 mwallace AT skyler DOT wiltel DOT com wrote:
>> 
>> > Does anyone have or know of any good fixed point math
>> > routines written for DJGPP?  I've tried porting from
>> > other compilers, but I am not having any luck.  It
>> > seems like sometimes they work, sometimes they don't.
>> 
>> Allegro seems to have it.  I didn't look, but the recent announcement by 
>> its author says this (among other features):
>> 
>>    Fixed point 16.16 math functions including lookup table trig.
>> 
>> You can get Allegro at this URL:
>> 
>>    ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2tk/alleg21.zip
>
>
>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...
>
Because when you multiply, you would need a long long long int or
something 128 bits long.. 16.16 uses long long ints for multiplication
and division.

-------------------------------------
Peter Johnson
-------------------------------------
locke AT mcs DOT net
http://www.mcs.net/~locke/
-------------------------------------
Freelance C/C++/Pascal/Asm programmer
 for DJGPP, Borland, and Watcom compilers
Member of BiLogic demo group
-------------------------------------

- Raw text -


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