Path: chuka.playstation.co.uk!news From: alex@teeth.demon.co.uk (Alex Amsel) Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Pointless Optimisation Trick 1 Date: Thu, 16 Oct 1997 17:11:49 GMT Organization: Into Beyond Lines: 17 Message-ID: <344647ee.14591228@news.playstation.co.uk> Reply-To: alex@teeth.demon.co.uk NNTP-Posting-Host: teeth.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Newsreader: Forte Agent .99g/32.335 Pointless Optimisation Trick 1: #define SWAP(a,b) {a ^= b; b^= a; a ^= b;} Haven't tried it out yet but it worked on paper. Probably put it in code and it'll get upset! Regards, Alex Amsel + Tuna Technologies + Telephone & Fax +44 (0)114 221 0686 + + For all your Win95/NT/Console Game and Tool Development + + And we say, "A good programmer always blames Microsoft" + + "Just say NO to Big Fat Ron", say I to Sir Jack Hayward +