Re: [PATCH] x86_64 : prefetchw() can fall back to prefetch() if !3DNOW

From: Andi Kleen
Date: Wed Aug 03 2005 - 08:19:20 EST


On Thu, Jul 28, 2005 at 07:10:41PM +0200, Eric Dumazet wrote:
> [PATCH] x86_64 : prefetchw() can fall back to prefetch() if !3DNOW
>
> If the cpu lacks 3DNOW feature, we can use a normal prefetcht0 instruction
> instead of NOP5.
> "prefetchw (%rxx)" and "prefetcht0 (%rxx)" have the same length, ranging
> from 3 to 5 bytes
> depending on the register. So this patch even helps AMD64, shortening the
> length of the code.

Looks good, thanks.

-Andi

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