Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!uvm-gen!wirthlin From: wirthlin@uvm-gen.UUCP (Ralph Wirthlin) Newsgroups: comp.unix.questions Subject: Bit Switching - THANKS Message-ID: <1142@uvm-gen.UUCP> Date: 6 Apr 89 12:59:49 GMT Distribution: usa Organization: EMBA Computer Facility, Univ. of Vermont, Burlington. Lines: 21 I appreciate the flood of mail and responses that were received on bit switching. The most effective means of bit switching (for my application) seems to be: c = (b1 ^ b2) & mask; b1^ = c; b2^ = c; (And to think I was considering switching *one* bit at a time! :-) ) Again, thanks to all. Ralph ------------------------------------------------------------------------------- Ralph L. Wirthlin | "Who knows where madness lies .. EMAIL:wirthlin@uvm-gen.uvm.edu | To surrender dreams, this may be USMAIL: BOX 125 Newport Ctr., VT | madness .. too much sanity is madness, | but maddest of all is to see life as | it is and not as it should be" | - Man of La Mancha -------------------------------------------------------------------------------