From: Reinier Heeres Newsgroups: comp.os.msdos.djgpp Subject: Re: 8 Byte Integer Date: Mon, 09 Feb 1998 18:22:38 +0100 Organization: World Online Lines: 19 Message-ID: <34DF3B5E.47B018A7@worldonline.nl> References: <3 DOT 0 DOT 32 DOT 19980207131923 DOT 0083a980 AT dataplusnet DOT com> Reply-To: rwh AT worldonline DOT nl NNTP-Posting-Host: alkmr1-p11.worldonline.nl Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Michael Matczynski wrote: > Is there a way so I can specify the size of an integer in DJGPP. In > MSDN > help, it says that MSVC++ 5.0 has the following integer sizes: > > 1 byte: –128 to 127 > 2 byte: –32,768 to 32,767 > 4 byte: –2,147,483,648 to 2,147,483,647 > 8 byte: –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 > > I am doing a program that calculates prime numbers, so the bigger the > better. Is there any way I can get a 4 or 8 byte integer in DJGPP? int or long types are 4 bytes, you'll have to create 8 byte types yourself... Reinier