From owner-svn-src-head@FreeBSD.ORG Mon Jan 26 07:31:28 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CF481065670; Mon, 26 Jan 2009 07:31:28 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5B6E58FC14; Mon, 26 Jan 2009 07:31:28 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n0Q7VSnn040805; Mon, 26 Jan 2009 07:31:28 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n0Q7VS5Z040804; Mon, 26 Jan 2009 07:31:28 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <200901260731.n0Q7VS5Z040804@svn.freebsd.org> From: Xin LI Date: Mon, 26 Jan 2009 07:31:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r187707 - head/lib/libc/string X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jan 2009 07:31:28 -0000 Author: delphij Date: Mon Jan 26 07:31:28 2009 New Revision: 187707 URL: http://svn.freebsd.org/changeset/base/187707 Log: - Fix grammar. [1] - Use the correct term 'long mode'. [2] - style(9) for return value. [3] Submitted by: Ben Kaduk [1], obrien [2], scf [3] Modified: head/lib/libc/string/strlen.c Modified: head/lib/libc/string/strlen.c ============================================================================== --- head/lib/libc/string/strlen.c Mon Jan 26 06:14:42 2009 (r187706) +++ head/lib/libc/string/strlen.c Mon Jan 26 07:31:28 2009 (r187707) @@ -50,8 +50,8 @@ __FBSDID("$FreeBSD$"); * * ((x - 0x01....01) & 0x80....80) * - * This is more than 5.2 times as compared to the raw implementation - * on Intel T7300 under EM64T mode for strings longer than word length. + * This is more than 5.2 times as fast as the raw implementation on + * Intel T7300 under long mode for strings longer than word length. */ /* Magic numbers for the algorithm */ @@ -105,6 +105,6 @@ strlen(const char *str) } /* NOTREACHED */ - return 0; + return (0); }