Re: [BK+PATCH] remove __constant_memcpy

Alan Cox (alan@lxorguk.ukuu.org.uk)
17 Apr 2003 14:17:16 +0100


On Iau, 2003-04-17 at 01:57, Jeff Garzik wrote:
> The patch below is the conservative, obvious patch. It only kicks in
> when __builtin_constant_p() is true, and it only applies to the i386
> arch.

You are assuming the compiler is smart about stuff - it doesnt know
SSE/MMX for page copies etc. For small copies it should alays win, but
isn't it best if so to use __builtin_memcpy without our existing
macros not just trust the compiler ?

-
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/