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

Dave Chinner david at fromorbit.com
Fri Jul 8 05:26:29 CDT 2011


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 at lst.de>

Reviewed-by: Dave Chinner <dchinner at redhat.com>
-- 
Dave Chinner
david at fromorbit.com




More information about the xfs mailing list