Re: [PATCH] speed up on find_first_bit for i386 (let compiler dothe work)

From: Maciej W. Rozycki
Date: Fri Jul 29 2005 - 09:43:50 EST


On Fri, 29 Jul 2005, David Woodhouse wrote:

> Builtins are more portable and their implementation will improve to
> match developments in the target CPU. Inline assembly, as we have seen,
> remains the same for years while the technology moves on.
>
> Although it's often the case that inline assembly _is_ better,
> especially in code which is arch-specific in the first place, I wouldn't
> necessarily assume that it's always the case.

Well, if some inline assembly is found to be better, then perhaps it
should be contributed (not necessarily as is, but as a concept) to GCC for
improvement.

Maciej
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/