Re: bitvector question

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 04/29/98


try C = B & (~A)
A   = 0110
~A  = 1001
B   = 1100
B&A = 1000

B and (one's complement of A)

order is VERY important.
--Angus

______________________________ Forward Header __________________________________
Subject: Re:  bitvector question
Author:  INTERNET:CIRCLE@POST.QUEENSU.CA at CSERVE
Date:    4/29/98 10:04 AM


Ok heres the truth table I'm looking for...

  1 0 A
1 0 1
0 0 0
B

thus  A = 0110
      B = 1100

      C = 1000 - this would be the effect (C has what B does but not A..ugh)

I think what Rob Baumstark said would work...
     C = B-(A^B)

Gunna have to try that


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST