Re^2: Bit Switching - How?

Maarten Litmaath maart at cs.vu.nl
Fri Apr 7 03:59:58 AEST 1989


sl at van-bc.UUCP (pri=-10 Stuart Lynne) writes:
\For fast generic swapping I use:

\#define	swap(a,b) {a^=b;b^=a;a^= b;}

Generic? How about floats?
-- 
 "If it isn't aesthetically pleasing, |Maarten Litmaath @ VU Amsterdam:
  it's probably wrong." (jim at bilpin). |maart at cs.vu.nl, mcvax!botter!maart



More information about the Comp.unix.questions mailing list