Re: [RFC][PATCH] Faster generic_fls

Chuck Ebbert (76306.1226@compuserve.com)
Fri, 2 May 2003 06:04:53 -0400


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/