This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: strcmp is too heavy for its everyday usage...
- From: Denis Zaitsev <zzz at anda dot ru>
- To: Roland McGrath <roland at redhat dot com>
- Cc: Zack Weinberg <zack at codesourcery dot com>, Andreas Jaeger <aj at suse dot de>,Richard Henderson <rth at redhat dot com>, libc-alpha at sources dot redhat dot com,linux-gcc at vger dot kernel dot org
- Date: Thu, 8 Jan 2004 06:36:36 +0500
- Subject: Re: strcmp is too heavy for its everyday usage...
- References: <20040108060924.A4431@zzz.ward.six> <200401080113.i081DB1c000920@magilla.sf.frob.com>
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?