From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id p68AQXcY233984 for ; Fri, 8 Jul 2011 05:26:33 -0500 Received: from ipmail05.adl6.internode.on.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id EAF5756882 for ; Fri, 8 Jul 2011 03:26:31 -0700 (PDT) Received: from ipmail05.adl6.internode.on.net (ipmail05.adl6.internode.on.net [150.101.137.143]) by cuda.sgi.com with ESMTP id cpsH8DnR5yCJ3XzB for ; Fri, 08 Jul 2011 03:26:31 -0700 (PDT) Date: Fri, 8 Jul 2011 20:26:29 +1000 From: Dave Chinner Subject: Re: [PATCH 23/28] xfs: byteswap constants instead of variables Message-ID: <20110708102629.GP1026@dastard> References: <20110707110535.205001532@bombadil.infradead.org> <20110707110645.046387162@bombadil.infradead.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20110707110645.046387162@bombadil.infradead.org> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Christoph Hellwig Cc: xfs@oss.sgi.com On Thu, Jul 07, 2011 at 07:05:58AM -0400, Christoph Hellwig wrote: > Micro-optimize various comparisms by always byteswapping the constant > instead of the variable, which allows to do the swap at compile instead > of runtime. > > Signed-off-by: Christoph Hellwig Reviewed-by: Dave Chinner -- Dave Chinner david@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs