[comp.unix.questions] Bit Switching - THANKS

wirthlin@uvm-gen.UUCP (Ralph Wirthlin) (04/06/89)

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	
-------------------------------------------------------------------------------