From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d7ae8269a4ecf7c4 X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: Prevalence of Compilers for Which Integer'Size < 32? Date: 1996/07/28 Message-ID: #1/1 X-Deja-AN: 170646860 references: <4tdp24$5h1@news.pacifier.com> organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.lang.ada Date: 1996-07-28T00:00:00+00:00 List-Id: In article <4tdp24$5h1@news.pacifier.com>, Steve Doiel 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