summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-10-01 13:10:11 +0000
committerjilles <jilles@FreeBSD.org>2010-10-01 13:10:11 +0000
commitd1afef8be57ed26602c57190abd66f744f580a4c (patch)
treef673f61b959f822e54ed050a00b32ad578882c75 /tools
parent35c65502b901091ef76d27653bcc588fa8117194 (diff)
downloadFreeBSD-src-d1afef8be57ed26602c57190abd66f744f580a4c.zip
FreeBSD-src-d1afef8be57ed26602c57190abd66f744f580a4c.tar.gz
libc: Remove the i386 assembler version of strlen(3).
On anything modern, the C version, which processes a word at a time, is much faster. The Intel optimization manual explicitly warns against using REP prefixes with SCAS or CMPS, which is exactly what the assembler version does. A simple test on a Phenom II showed the C version, compiled with -O2, to be about twice as fast determining the length of 100000 strings between 0 and 255 bytes long. MFC after: 2 weeks
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud