Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Aug 2012 14:11:00 +0400
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        Scott Long <scottl@FreeBSD.org>
Cc:        svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: svn commit: r239940 - head/sys/dev/ixgbe
Message-ID:  <20120831101100.GL90597@FreeBSD.org>
In-Reply-To: <201208311007.q7VA7cwT010999@svn.freebsd.org>
References:  <201208311007.q7VA7cwT010999@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
  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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120831101100.GL90597>