Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Oct 2010 13:10:11 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libc/i386/string Makefile.inc strlen.S
Message-ID:  <201010011310.o91DASj6052570@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jilles      2010-10-01 13:10:11 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/i386/string Makefile.inc 
  Removed files:
    lib/libc/i386/string strlen.S 
  Log:
  SVN rev 213326 on 2010-10-01 13:10:11Z by jilles
  
  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
  
  Revision  Changes    Path
  1.14      +1 -1      src/lib/libc/i386/string/Makefile.inc
  1.11      +0 -54     src/lib/libc/i386/string/strlen.S (dead)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010011310.o91DASj6052570>