Re: svn commit: r187700 - head/lib/libc/string

2009-01-25 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ben Kaduk wrote: [...] >> + * >> + * 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. > > The grammar is not quite right, here. Did you mean to say "more tha

Re: svn commit: r187700 - head/lib/libc/string

2009-01-25 Thread Ben Kaduk
On Sun, Jan 25, 2009 at 6:08 PM, Xin LI wrote: > Author: delphij > Date: Sun Jan 25 23:08:47 2009 > New Revision: 187700 > URL: http://svn.freebsd.org/changeset/base/187700 > > Log: > Rewrite of MI strlen(3) in a way that can better utilize modern hardware by > reducing branches and doing word-s

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

2009-01-25 Thread Xin LI
Author: delphij Date: Sun Jan 25 23:08:47 2009 New Revision: 187700 URL: http://svn.freebsd.org/changeset/base/187700 Log: Rewrite of MI strlen(3) in a way that can better utilize modern hardware by reducing branches and doing word-sized operation. The idea is taken from J.T. Conklin's x8