svn commit: r187707 - head/lib/libc/string

Xin LI delphij at FreeBSD.org
Sun Jan 25 23:31:28 PST 2009


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 <minimarmot gmail com> [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);
 }
 


More information about the svn-src-head mailing list