This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Optimized? strchr implementations.
- From: Richard Henderson <rth at redhat dot com>
- To: OndÅej BÃlka <neleai at seznam dot cz>, Wilco Dijkstra <wdijkstr at arm dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 26 May 2015 10:18:18 -0700
- Subject: Re: Optimized? strchr implementations.
- Authentication-results: sourceware.org; auth=none
- References: <20150524150715 dot GA31589 at domone> <20150524163214 dot GA28053 at domone> <20150524171036 dot GA20947 at domone> <000b01d097ae$ca78c340$5f6a49c0$ at com> <20150526143854 dot GA24529 at domone>
On 05/26/2015 07:38 AM, OndÅej BÃlka wrote:
> Richard as you added alpha could you adapt it to strchnul? And why you
> do a binary search there? Accoring to wiki alpha supports ctlz
> instruction that does exactly that.
I suppose I could. Does it get used often, or indeed ever?
Matt already mentioned the ev67 thing, and you can see that we do indeed have
another copy that uses it: sysdeps/alpha/alphaev67/strchr.S.
r~