comp.lang.ada
 help / color / mirror / Atom feed
From: "Robert I. Eachus" <rieachus@comcast.net>
Subject: Re: Endian-Independent Rep Clauses
Date: Mon, 26 Jan 2004 20:03:21 -0500
Date: 2004-01-26T20:03:21-05:00	[thread overview]
Message-ID: <L8CdnXVgkvVGJYjdRVn-tA@comcast.com> (raw)
In-Reply-To: <rMdRb.27690$1e.18707@newsread2.news.pas.earthlink.net>

Jeffrey Carter wrote:

> IIRC, it addresses the fact that Default_Bit_Order is static, thanks to 
> an AI, and uses static universal math based on Boolean'Pos 
> (Default_Bit_Order = <one_of_the_choices>) to calculate bit positions. 
> I've done this kind of thing; it requires long expressions for bit 
> numbers, but works fine.

Not really, just declare:

Bits: constant := System.Bit_Order'Pos(System.Default_Bit_Order);

then go on from there.
-- 
                                           Robert I. Eachus

"The war on terror is a different kind of war, waged capture by capture, 
cell by cell, and victory by victory. Our security is assured by our 
perseverance and by our sure belief in the success of liberty." -- 
George W. Bush




  reply	other threads:[~2004-01-27  1:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-26 13:30 Standard Ada Preprocessor Lionel.DRAGHI
2004-01-26 16:10 ` Robert I. Eachus
2004-01-26 19:20   ` Endian-Independent Rep Clauses (was: Standard Ada Preprocessor) Jeffrey Carter
2004-01-27  1:03     ` Robert I. Eachus [this message]
2004-01-27  2:01       ` Endian-Independent Rep Clauses Stephen Leake
2004-01-27  3:16         ` Robert I. Eachus
2004-01-27  8:10           ` Stephen Leake
2004-01-27  3:34         ` Jeffrey Carter
2004-01-27  8:14           ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox