From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Prevalence of Compilers for Which Integer'Size < 32?
Date: 1996/07/28
Date: 1996-07-28T00:00:00+00:00 [thread overview]
Message-ID: <Dv9Iwu.AEC@world.std.com> (raw)
In-Reply-To: 4tdp24$5h1@news.pacifier.com
In article <4tdp24$5h1@news.pacifier.com>,
Steve Doiel <steved@pacifier.com> wrote:
> type
> anInt32 is range -21474_83648 .. 21474_83647;
What's wrong with:
type anInt32 is range -2**31 .. 2**31-1;
?
Also, a useful technique is:
type Dummy is range -1_000_000_000 .. 1_000_000_000;
subtype My_Int is Dummy'Base;
or
subtype My_Int is Dummy'Base range Dummy'Base'First..Dummy'Base'Last;
which will give you a reasonably efficient range that is at least minus
a billion to a billion.
- Bob
next prev parent reply other threads:[~1996-07-28 0:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-26 0:00 Prevalence of Compilers for Which Integer'Size < 32? Dave Marshall
1996-07-27 0:00 ` steved
1996-07-28 0:00 ` Robert A Duff [this message]
1996-07-30 0:00 ` Ken Garlington
1996-07-30 0:00 ` Robert Dewar
1996-08-01 0:00 ` steved
[not found] ` <31FF5CF0.5C13@lmtas.lmco.com>
1996-08-03 0:00 ` Robert Dewar
1996-08-07 0:00 ` Ken Garlington
1996-07-28 0:00 ` Dave Marshall
1996-07-28 0:00 ` Robert Dewar
1996-07-28 0:00 ` Robert A Duff
1996-07-28 0:00 ` Robert Dewar
1996-07-29 0:00 ` Robert A Duff
1996-07-28 0:00 ` steved
-- strict thread matches above, loose matches on Subject: below --
1996-07-28 0:00 tmoran
1996-07-29 0:00 ` John Herro
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox