gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] hackerlab str_ functions performance


From: Andrew Suffield
Subject: Re: [Gnu-arch-users] hackerlab str_ functions performance
Date: Fri, 3 Sep 2004 15:52:22 +0100
User-agent: Mutt/1.5.6+20040818i

On Fri, Sep 03, 2004 at 04:25:59PM +0200, Yann Droneaud wrote:
> > The glibc routines are written in C, although they are
> > inlined. They're really quite evil, and beat the crap out of a generic
> > assembly routine. They're designed so that the compiler can select an
> > appropriate strategy based on its knowledge of the data and the target
> > processor.
> >
> 
> Just checkout :
> /usr/include/bits/string.h
> 
> There are some assembler function here at least on i386 (for other
> architecture i'm not sure). 
> 
> For other inlining see:
> /usr/include/bits/string2.h
> 
> The inlining help to deal with constant string/expression.

The latter are the ones which are normally used. You have to
explicitly ask for the assembly variants, and it doesn't help very
often.

-- 
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  http://www.debian.org/ |
 `. `'                          |
   `-             -><-          |

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]