🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #12312

Re: swapping bitmaps using the blitter and not using temporary space

#12312
From: Bryan Bayerdorffer Wit's End
Date: Sat, 22 Apr 1989 02:49
26 lines
1488 bytes
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_|___
|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|
Technical Details
Message-ID: <334@mohawk.cs.utexas.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!bryan
References: <8904212115.AA19128@hermes.berkeley.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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