This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFC] Implement memcchr


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]