www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/15/06:48:16

From: Michael Bukin <bukinm AT inp DOT nsk DOT su>
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: <m3g1rccsru.fsf@H-Bukin.inp.nsk.su>
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

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019