From: guerby@gnat.com (Laurent Guerby)
Subject: Re: one's complement operator in Ada
Date: 1996/07/26
Date: 1996-07-26T00:00:00+00:00 [thread overview]
Message-ID: <ws9zq4mn2dz.fsf@schonberg.cs.nyu.edu> (raw)
In-Reply-To: 31F8DE73.41C6@afit.af.mil
Steven> For example, in C++:
Steven> ulong mask;
Steven> ulong j:= ~mask;
For example, in Ada 95:
type U_Long is mod 2 ** 32;
-- or use Interfaces.Unsigned_32
Mask : U_Long;
J : U_Long := not Mask;
Question, how do you do easily a mask rotation in C? In Ada 95,
you just use Interfaces.Rotate_Left (or Right).
--
Laurent Guerby <guerby@gnat.com>, Team Ada.
"Use the Source, Luke. The Source will be with you, always (GPL)."
prev parent reply other threads:[~1996-07-26 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-26 0:00 one's complement operator in Ada Ding-yuan Sheu
1996-07-26 0:00 ` Tucker Taft
1996-07-26 0:00 ` Laurent Guerby [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox