From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e8b01e86b2d0a470 X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: how to do bit-wise operation on none modular types? Date: 1999/03/04 Message-ID: <7bmavt$i8h$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 451178161 References: <7bj7ti$4i@drn.newsguy.com> <7bjjck$25t7@news1.newsguy.com> <7bk5u2$94p$1@remarQ.com> X-Http-Proxy: 1.0 x8.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Mar 04 16:05:26 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1999-03-04T00:00:00+00:00 List-Id: 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