xfs
[Top] [All Lists]

Re: [PATCH 23/28] xfs: byteswap constants instead of variables

To: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Subject: Re: [PATCH 23/28] xfs: byteswap constants instead of variables
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Fri, 8 Jul 2011 20:26:29 +1000
Cc: xfs@xxxxxxxxxxx
In-reply-to: <20110707110645.046387162@xxxxxxxxxxxxxxxxxxxxxx>
References: <20110707110535.205001532@xxxxxxxxxxxxxxxxxxxxxx> <20110707110645.046387162@xxxxxxxxxxxxxxxxxxxxxx>
User-agent: Mutt/1.5.20 (2009-06-14)
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 <hch@xxxxxx>

Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx>
-- 
Dave Chinner
david@xxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>