This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC] Implement memcchr
- From: Yuri Gribov <tetra2005 at gmail dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Cc: adhemerval dot zanella at linaro dot org
- Date: Fri, 13 Jan 2017 07:59:41 +0000
- Subject: Re: [RFC] Implement memcchr
- Authentication-results: sourceware.org; auth=none
- References: <CAJOtW+6UoqLQ3C6HqvheO+dLDd4Gzozo=MipS=4dWe9zKDcOjw@mail.gmail.com>
Forgot to mention PR for this:
https://sourceware.org/bugzilla/show_bug.cgi?id=21018
On Fri, Jan 13, 2017 at 7:54 AM, Yuri Gribov <tetra2005@gmail.com> wrote:
> Hi all.
>
> Recent FreeBSD have a nice complement for standard memchr function -
> memcchr (https://www.freebsd.org/cgi/man.cgi?query=memcchr). It e.g.
> allows user to efficiently check whether buffer is zeroed out. Would
> it make sense to add something like this to Glibc as well (yes, I can
> volunteer)?
>
> Here's a motivational GCC bug:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69908
>
> Adhemerval expressed his concerns that the function may not be that
> widespread and useful.
>
>
> -Y