This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Gcc builtin review: memchr, memrchr, rawmemchr
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: libc-alpha at sourceware dot org
- Cc: Andrew Pinski <pinskia at gmail dot com>
- Date: Tue, 26 May 2015 21:58:31 +0200
- Subject: Re: Gcc builtin review: memchr, memrchr, rawmemchr
- Authentication-results: sourceware.org; auth=none
- References: <20150525101505 dot GA11233 at domone> <20150525103839 dot GB11233 at domone> <20150525105540 dot GA12655 at domone>
On Mon, May 25, 2015 at 12:55:40PM +0200, OndÅej BÃlka wrote:
> Gcc doesn't do any optimizations with these but misses several.
>
Also next optimization is that memchr(s, 0, n) could be converted to
calling strnlen (s, n) and converting result.