From owner-svn-src-all@FreeBSD.ORG Fri Aug 31 10:11:08 2012 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C6AA1065676; Fri, 31 Aug 2012 10:11:08 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.64.117]) by mx1.freebsd.org (Postfix) with ESMTP id 0086B8FC17; Fri, 31 Aug 2012 10:11:07 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.5/8.14.5) with ESMTP id q7VAB0nF098129; Fri, 31 Aug 2012 14:11:00 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.5/8.14.5/Submit) id q7VAB0Q2098128; Fri, 31 Aug 2012 14:11:00 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Fri, 31 Aug 2012 14:11:00 +0400 From: Gleb Smirnoff To: Scott Long Message-ID: <20120831101100.GL90597@FreeBSD.org> References: <201208311007.q7VA7cwT010999@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <201208311007.q7VA7cwT010999@svn.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r239940 - head/sys/dev/ixgbe X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2012 10:11:08 -0000 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.