This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: strcmp is too heavy for its everyday usage...


On Wed, Jan 07, 2004 at 05:13:11PM -0800, Roland McGrath wrote:

> The optimized string functions already do word comparisons when that
> is possible and advantageous.  The comparisons to extract the
> ordering vs just equality/nonequality are only on the first
> nonmatching byte.

But it's an overhead anyway.  Then, it's bad enough for the inlining.
And then, where is such a strcmp in GLIBC?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]