From: dennison@telepath.com
Subject: Re: how to do bit-wise operation on none modular types?
Date: 1999/03/04
Date: 1999-03-04T00:00:00+00:00 [thread overview]
Message-ID: <7bmavt$i8h$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 7bk5u2$94p$1@remarQ.com
In article <7bk5u2$94p$1@remarQ.com>,
fraser@synopsys.synopsys.com.com wrote:
> I've recently written a couple of virtual machines for two wildly different
> purposes, and there was a lot of bit fiddling going on, but I did it almost
> exclusively with "/" and "mod", even though I was looking at modular types.
> I suddenly wonder if I was wrong. Oh, my.
If you found youself doing this type of operation:
((Fred / Mask) * Mask) mod (Mask * 2)
or perhaps several of these:
if (Fred / Mask) mod 2 > 0 then
Then yes, you should have looked at modular types or packed arrays of
booleans.
T.E.D.
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
next prev parent reply other threads:[~1999-03-04 0:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-03 0:00 how to do bit-wise operation on none modular types? bill
1999-03-03 0:00 ` Tucker Taft
1999-03-03 0:00 ` Samuel Mize
1999-03-03 0:00 ` dennison
1999-03-03 0:00 ` Tucker Taft
1999-03-04 0:00 ` Tom Moran
1999-03-04 0:00 ` fraser
1999-03-04 0:00 ` robert_dewar
1999-03-05 0:00 ` bourguet
1999-03-05 0:00 ` robert_dewar
1999-03-03 0:00 ` fraser
1999-03-04 0:00 ` dennison [this message]
1999-03-04 0:00 ` Samuel Mize
1999-03-05 0:00 ` fraser
1999-03-03 0:00 ` Tarjei Tj�stheim Jensen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox