comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: bitstreams
Date: Tue, 16 Jan 2001 00:59:12 GMT
Date: 2001-01-16T00:59:12+00:00	[thread overview]
Message-ID: <9406cs$g4i$1@nnrp1.deja.com> (raw)
In-Reply-To: 93vik8$u08$1@nnrp1.deja.com

In article <93vik8$u08$1@nnrp1.deja.com>,
  mark_lundquist@my-deja.com wrote:
> Note that shift and rotate functions are primitive operations
> of the Signed_<n> and Unsigned_<n> families of types (RM B.2)
         ^^^^^^^^^^

A surprising mistake :-) It is of course the case that these
functions do NOT apply to signed numbers (where there meaning
would be obscure or at least implementation defined, because
of the sign bit issue).

One interesting bit of non-portability comes from whether it
is possible to define these operators for *USER* defined
unsigned types. The RM does not require this capability, but
in GNAT you can define your own intrinsic shift functions for
your own modular types, and GNAT will permit this. I do not
know if other Ada 95 compilers provide this capability.



Sent via Deja.com
http://www.deja.com/



  parent reply	other threads:[~2001-01-16  0:59 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-14 14:47 bitstreams Daniel Nilsson
2001-01-14 15:10 ` bitstreams Larry Kilgallen
2001-01-14 16:15 ` bitstreams tmoran
2001-01-14 19:46 ` bitstreams srini
2001-01-15 19:56   ` bitstreams mark_lundquist
2001-01-15 21:54     ` bitstreams Tucker Taft
2001-01-16  0:41       ` bitstreams Robert Dewar
2001-01-16  0:39     ` bitstreams Robert Dewar
2001-01-16 23:26       ` bitstreams Rajagopalan Srinivasan
2001-01-15 19:21 ` bitstreams mark_lundquist
2001-01-15 20:43   ` bitstreams Pat Rogers
2001-01-15 21:15     ` bitstreams mark_lundquist
2001-01-16  0:59   ` Robert Dewar [this message]
2001-01-16 17:36     ` bitstreams mark_lundquist
2001-01-16 20:08       ` bitstreams Pat Rogers
2001-01-17  2:15         ` bitstreams Robert Dewar
replies disabled

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