Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261359AbVAWVZx (ORCPT ); Sun, 23 Jan 2005 16:25:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261360AbVAWVZx (ORCPT ); Sun, 23 Jan 2005 16:25:53 -0500 Received: from are.twiddle.net ([64.81.246.98]:18048 "EHLO are.twiddle.net") by vger.kernel.org with ESMTP id S261359AbVAWVZs (ORCPT ); Sun, 23 Jan 2005 16:25:48 -0500 Date: Sun, 23 Jan 2005 13:24:55 -0800 From: Richard Henderson To: vlobanov Cc: Andreas Gruenbacher , linux-kernel@vger.kernel.org, Neil Brown , Trond Myklebust , Olaf Kirch , "Andries E. Brouwer" , Buck Huppmann , Andrew Morton Subject: Re: [patch 1/13] Qsort Message-ID: <20050123212455.GA8055@twiddle.net> Mail-Followup-To: vlobanov , Andreas Gruenbacher , linux-kernel@vger.kernel.org, Neil Brown , Trond Myklebust , Olaf Kirch , "Andries E. Brouwer" , Buck Huppmann , Andrew Morton References: <20050122203326.402087000@blunzn.suse.de> <20050122203618.962749000@blunzn.suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 702 Lines: 25 On Sat, Jan 22, 2005 at 01:00:24PM -0800, vlobanov wrote: > #define SWAP(a, b, size) \ > do { \ > register size_t __size = (size); \ > register char * __a = (a), * __b = (b); \ > do { \ > *__a ^= *__b; \ > *__b ^= *__a; \ > *__a ^= *__b; \ > __a++; \ > __b++; \ > } while ((--__size) > 0); \ > } while (0) > > What do you think? :) I think you'll confuse the compiler and get worse results. r~ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/