Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Apr 2005 01:14:26 -0500
From:      Alan Cox <alc@cs.rice.edu>
To:        Alan Cox <alc@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/amd64/string Makefile.inc bcmp.S memcmp.S
Message-ID:  <20050408061426.GH20275@cs.rice.edu>
In-Reply-To: <200504080515.j385FtbX016388@repoman.freebsd.org>
References:  <200504080515.j385FtbX016388@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 08, 2005 at 05:15:55AM +0000, Alan Cox wrote:
> alc         2005-04-08 05:15:55 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     lib/libc/amd64/string Makefile.inc 
>   Added files:
>     lib/libc/amd64/string bcmp.S memcmp.S 
>   Log:
>   Add machine-specific, optimized implementations of bcmp and memcmp.
>   
>   PR: 73111
>   Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
>   MFC after: 3 weeks
>   
>   Revision  Changes    Path
>   1.2       +1 -1      src/lib/libc/amd64/string/Makefile.inc
>   1.1       +25 -0     src/lib/libc/amd64/string/bcmp.S (new)
>   1.1       +41 -0     src/lib/libc/amd64/string/memcmp.S (new)

It is worth noting that by default the current version of gcc
automatically inlines its own implementation of these functions.  That
implementation is slower than this new libc implementation for strings
of non-trivial length.

Alan



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