Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!bryan From: bryan@cs.utexas.edu (Bryan Bayerdorffer @ Wit's End) Newsgroups: comp.sys.amiga.tech Subject: Re: swapping bitmaps using the blitter and not using temporary space Message-ID: <334@mohawk.cs.utexas.edu> Date: 22 Apr 89 02:49:43 GMT References: <8904212115.AA19128@hermes.berkeley.edu> Reply-To: bryan@cs.utexas.edu Organization: Spam Detection & Removal Squad, Austin, TX Lines: 26 Spam-Content: Negligible In article <8904212115.AA19128@hermes.berkeley.edu> dillon@HERMES.BERKELEY.EDU (Matt Dillon) writes: =- =- bitmap's A and B =- =- A = A ^ B =- B = B ^ A (B = B ^ A ^ B = A) =- A = A ^ B (A = A ^ B ^ A = B) =- =- -Matt Or (Xor?), for that matter, A = A xor B B = A xor B A = A xor B Now let's all recite swap() {a = a+b; b = a-b; a = a-b;} for the zillionth time. :-) :-) ______________________________________________________________________________ /_____/_____/_____/_____/_____/_____/_____/_____/_____/_____/_____/_____/_____/ |_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____| _No dark sarcasm in the classroom|_____|_____|_____|_____|_____|_____|_____|___ |____Teachers leave the kids alone__|_____|_____|_____|_bryan@cs.utexas.edu___| ___|_____|_____|_____|_____|_____|_____|{vertebrae...}!cs.utexas.edu!bryan_|___ |_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|