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: 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 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 -------------------------------------