Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262012AbTEBJxe (ORCPT ); Fri, 2 May 2003 05:53:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262014AbTEBJxe (ORCPT ); Fri, 2 May 2003 05:53:34 -0400 Received: from siaab1ab.compuserve.com ([149.174.40.2]:57077 "EHLO siaab1ab.compuserve.com") by vger.kernel.org with ESMTP id S262012AbTEBJxd (ORCPT ); Fri, 2 May 2003 05:53:33 -0400 Date: Fri, 2 May 2003 06:04:53 -0400 From: Chuck Ebbert <76306.1226@compuserve.com> Subject: Re: [RFC][PATCH] Faster generic_fls To: Peter Osterlund Cc: linux-kernel Message-ID: <200305020605_MC3-1-370C-A9C1@compuserve.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 708 Lines: 23 Peter Osterlund wrote: >> mov ,eax >> mov eax, >> mov ,eax ; eax already contains mem1 you stupid compiler >> ret > > Not necessarily if mem2 == mem1 + 2. Consider this code: I realized after sending that last that I should have added that there were no volatiles and no aliasing possible. This was the kernel code: return conf->last_used = new_disk; (new_disk is a local variable, conf is a function arg.) ------ Chuck - 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/