Efficient swap()

Bjorn Engsig bengsig at oracle.nl
Tue Jan 15 02:17:01 AEST 1991


Article <1991Jan13.050236.11634 at ux1.cso.uiuc.edu> by heal at ux1.cso.uiuc.edu (Loren Heal) says:
|#define swap(A,B) (A^=B^=A^=B)
Maybe you should have read the list of Frequently Asked Questions before
posting this.
-- 
Bjorn Engsig,         E-mail: bengsig at oracle.com, bengsig at oracle.nl
ORACLE Corporation    Path:   uunet!orcenl!bengsig

            "Stepping in others footsteps, doesn't bring you ahead"



More information about the Comp.lang.c mailing list