svn commit: r239940 - head/sys/dev/ixgbe

Gleb Smirnoff glebius at FreeBSD.org
Fri Aug 31 10:11:08 UTC 2012


  Scott,

On Fri, Aug 31, 2012 at 10:07:38AM +0000, Scott Long wrote:
S> +/*
S> + * Optimized bcopy thanks to Luigi Rizzo's investigative work.  Assumes
S> + * non-overlapping regions and 32-byte padding on both src and dst.
S> + */
S> +static __inline int
S> +ixgbe_bcopy(void *_src, void *_dst, int l)
S> +{
S> +	uint64_t *src = _src;
S> +	uint64_t *dst = _dst;
S> +
S> +	for (; l > 0; l -= 32) {
S> +		*dst++ = *src++;
S> +		*dst++ = *src++;
S> +		*dst++ = *src++;
S> +		*dst++ = *src++;
S> +	}
S> +	return (0);
S> +}
S> +

  Shouldn't this go to libkern?

-- 
Totus tuus, Glebius.


More information about the svn-src-head mailing list