comp.lang.ada
 help / color / mirror / Atom feed
From: Jim Rogers <jimmaureenrogers@worldnet.att.net>
Subject: Re: bit shift
Date: Mon, 25 Feb 2002 21:47:59 GMT
Date: 2002-02-25T21:47:59+00:00	[thread overview]
Message-ID: <3C7AB10F.2050400@worldnet.att.net> (raw)
In-Reply-To: 4519e058.0202251227.692324f@posting.google.com

Right. I did overlook the Ada83 bit. I must get my new
prescription filled for my glasses.

You can implement a Right_Shift by dividing by multiples of
2. This does, however, require that the value being shifted
is an integer type. That is the most common situation for
bit shifting.

Left shifting becomes a significant problem using a signed
integer.

Jim Rogers

Ted Dennison wrote:

> Jim Rogers <jimmaureenrogers@worldnet.att.net> wrote in message news:<3C7A5391.60206@worldnet.att.net>...
> 
>>Look in the package Interfaces.
>>
> 
> ...which doesn't exist for Ada83, I'm afraid.
> 
> 
>>Stephen Frackelton wrote:
>>
>>
>>>does a bit shift operation / mechanism exist in ada83 ?
>>>
> 
> ---
> T.E.D.
> 




  reply	other threads:[~2002-02-25 21:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-25 14:03 bit shift Stephen Frackelton
2002-02-25 15:09 ` Jim Rogers
2002-02-25 15:25   ` A Interfaces package for '83? Petter Fryklund
2002-02-25 20:27   ` bit shift Ted Dennison
2002-02-25 21:47     ` Jim Rogers [this message]
2002-02-25 22:59   ` Frank J. Lhota
2002-02-25 17:20 ` John McCabe
2002-02-25 18:08 ` Robert Dewar
2002-02-26  9:19   ` John McCabe
replies disabled

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