delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/03/14/04:45:03

Date: Tue, 14 Mar 2000 11:25:42 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Martin Stromberg <Martin DOT Stromberg AT lu DOT erisoft DOT se>
cc: DJGPP-WORKERS <djgpp-workers AT delorie DOT com>
Subject: Re: Fastest integer type
In-Reply-To: <200003140840.JAA19626@mars.lu.erisoft.se>
Message-ID: <Pine.SUN.3.91.1000314112127.5313A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 14 Mar 2000, Martin Stromberg wrote:

> The standard says you should provide types that are the fastest on the
> platform (the definition of fastest is up to the platform) for integer
> types that are at least 8, 16, 32 and 64 bits. I know that ints (32
> bits) are faster than shorts (16 bits) in DJGPP, right?

Yes.

> Are ints (32 bits) faster than chars (8 bits)?

In what context?  If a char is used as an integral type (to count or to 
loop), I think there's no difference.

- Raw text -


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