From: Michael Bukin Newsgroups: comp.os.msdos.djgpp Subject: Re: long long int in DJGPP? Date: 11 Sep 1997 12:40:37 +0700 Organization: Budker Institute of Nuclear Physics Lines: 29 Message-ID: References: <5v525j$749$1 AT vnetnews DOT value DOT net> NNTP-Posting-Host: aster.inp.nsk.su To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk mschulter AT DOT value DOT net (M. Schulter) writes: > > Hi, there. > > Looking at the GCC docs and reading the mail archives on DJ's site leaves > me still a bit unclear as to whether DJGPP supports the 64-bit long long > int type. info gcc "c ext" "long long" => GNU C supports data types for integers that are twice as long as `long int'. Simply write `long long int' for a signed integer, or `unsigned long long int' for an unsigned integer... > > At the outset, please let me emphasize my recognition that this is _not_ > ANSI standard C. In fact, some messages report that it may not be > supported for GCC on the i386 platform, but only on some other > processor(s). > ...You can use these types in arithmetic like any other integer types. Addition, subtraction, and bitwise boolean operations on these types are open-coded on _all types of machines_. Multiplication is open-coded if the machine supports fullword-to-doubleword a widening multiply instruction. Division and shifts are open-coded only on machines that provide special support. The operations that are not open-coded use special library routines that come with GNU CC. Short answer -- gcc supports `long long' for all machines.