Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!ucbvax!MGHCCC.HARVARD.EDU!saganich%frodo.DECnet From: saganich%frodo.DECnet@MGHCCC.HARVARD.EDU ("FRODO::SAGANICH") Newsgroups: comp.os.vms Subject: Xor in lisp Message-ID: <8803130822.AA26142@ucbvax.Berkeley.EDU> Date: 11 Mar 88 17:23:00 GMT Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: "FRODO::SAGANICH" Organization: The Internet Lines: 23 Hi all, I regretted sending that message about `xor' in lisp the moment my finger hit the return. What I am looking for is not the logical xor that returns t or nil but the bitwise xor that returns the result of xoring the binary representations of a and b and returns the numeric result. IE. using the truth table 13 = 1101 |xor |0|1| 8 = 1000 ---------| xor------ | 0|0|1| 5 = 0101 ---------| | 1|1|0| ---------- just like the `|' operator of C Thanks, Al Saganich saganich%frodo.decnet@mghccc.harvard.edu ------