Mail Archives: djgpp/1998/01/18/15:45:18
From: | "John M. Aldrich" <fighteer AT cs DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: 64 bit integers ??!?
|
Date: | Sun, 18 Jan 1998 15:41:44 -0500
|
Organization: | Two pounds of chaos and a pinch of salt.
|
Lines: | 25
|
Message-ID: | <34C26908.62AA@cs.com>
|
References: | <69tlsd$lk2 AT examiner DOT concentric DOT net>
|
NNTP-Posting-Host: | ppp227.cs.com
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Andy Fung wrote:
>
> Hi all.
> I was wondering, is it possible to use 64bit integers in DJgpp C++ v2.0 .
>
> I wanted to make a fixed point math lib., with 64bit bit integers, it could
> help a lot.
There is no such thing as DJGPP C++. DJGPP is a development
environment, not a language. :-)
However, the gcc compiler on which DJGPP is based does support a 64-bit
integer, named 'long long'. You can use this like any other data type,
including printing and reading it. The Allegro graphics library has an
excellent fixed-point implementation that you might want to look at.
hth
--
---------------------------------------------------------------------
| John M. Aldrich | "Autocracy is based on the assumption|
| aka Fighteer I | that one man is wiser than a million |
| mailto:fighteer AT cs DOT com | men. Let's play that over again, |
| http://www.cs.com/fighteer | too. Who decides?" - Lazarus Long |
---------------------------------------------------------------------
- Raw text -