From owner-svn-src-all@FreeBSD.ORG Tue Jan 3 15:53:32 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 9C228106566C; Tue, 3 Jan 2012 15:53:32 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id 371E28FC0C; Tue, 3 Jan 2012 15:53:31 +0000 (UTC) Received: from localhost (58.wheelsystems.com [83.12.187.58]) by mail.dawidek.net (Postfix) with ESMTPSA id 02C45700; Tue, 3 Jan 2012 16:53:28 +0100 (CET) Date: Tue, 3 Jan 2012 16:52:21 +0100 From: Pawel Jakub Dawidek To: Ed Schouten Message-ID: <20120103155221.GB1663@garage.freebsd.pl> References: <201201012026.q01KQBS5029156@svn.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yEPQxsgoJgBvi8ip" Content-Disposition: inline In-Reply-To: <201201012026.q01KQBS5029156@svn.freebsd.org> X-OS: FreeBSD 9.0-CURRENT amd64 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: r229198 - in head: share/man/man9 sys/conf sys/libkern sys/sys 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: Tue, 03 Jan 2012 15:53:32 -0000 --yEPQxsgoJgBvi8ip Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 01, 2012 at 08:26:11PM +0000, Ed Schouten wrote: > Author: ed > Date: Sun Jan 1 20:26:11 2012 > New Revision: 229198 > URL: http://svn.freebsd.org/changeset/base/229198 >=20 > Log: > Introducing memcchr(3). > =20 > It seems two of the file system drivers we have in the tree, namely ufs > and ext3, use a function called `skpc()'. The meaning of this function > does not seem to be documented in FreeBSD, but it turns out one needs to > be a VAX programmer to understand what it does. > =20 > SPKC is an instruction on the VAX that does the opposite of memchr(). It > searches for the non-equal character. Add a new function called > memcchr() to the tree that has the following advantages over skpc(): > =20 > - It has a name that makes more sense than skpc(). Just like strcspn() > matches the complement of strspn(), memcchr() is the complement of > memchr(). > =20 > - It is faster than skpc(). Similar to our strlen() in libc, it compares > entire words, instead of single bytes. It seems that for this routine > this yields a sixfold performance increase on amd64. > =20 > - It has a man page. >=20 > Added: > head/share/man/man9/memcchr.3 (contents, props changed) Shouldn't this be memcchr.9? --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com --yEPQxsgoJgBvi8ip Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk8DJDUACgkQForvXbEpPzSUlgCfRU8b0la4rX2k3GmkU+uBsj5q 14UAoLti0y6TJbXigPmK7JWM6Xu4V28Z =Czu1 -----END PGP SIGNATURE----- --yEPQxsgoJgBvi8ip--