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: Roland McGrath <roland at redhat dot com>
- To: Denis Zaitsev <zzz at anda dot ru>
- 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: Wed, 7 Jan 2004 17:13:11 -0800
- Subject: Re: strcmp is too heavy for its everyday usage...
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.