Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

#define phXOR_SWAP x,
 )     { x = x ^ y; y = x ^ y; x = x ^ y; }
 

http://en.wikipedia.org/wiki/Xor_swap_algorithm

X := X XOR Y Y := X XOR Y X := X XOR Y

Requires no temporary storage

Definition at line 275 of file phStandard.h.





Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo

Generated on Sat Jun 16 02:45:27 2007 for phission by  doxygen 1.4.4