Re: [RFC][PATCH] Faster generic_fls

From: Chuck Ebbert (76306.1226@compuserve.com)
Date: Fri May 02 2003 - 05:04:53 EST


Peter Osterlund wrote:

>> mov <mem1>,eax
>> mov eax,<mem2>
>> mov <mem1>,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/



This archive was generated by hypermail 2b29 : Wed May 07 2003 - 22:00:15 EST