Mail Archives: djgpp/1996/06/25/18:41:48
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 -