[PATCH] Export strchrnul (pending newlib patch)
Corinna Vinschen
corinna-cygwin@cygwin.com
Mon Mar 28 19:44:00 GMT 2011
On Mar 28 10:48, Christopher Faylor wrote:
> On Sun, Mar 27, 2011 at 10:38:16PM -0500, Yaakov (Cygwin/X) wrote:
> >Here's the Cygwin patch to export strchrnul(3) once accepted in newlib.
>
> Cygwin already has an implementation of this named strechr written in
> assembly language. Maybe we should be exporting that.
Yeah, we could do that. We could keep strechr as inline implementation
in string.h and copy it over to strfunc.cc as exportable non-inline
function strchrnul.
Is our strechr really faster than an implementation which uses the
word-wise pattern matching optimization? At least as far as the
matching case is concerned. It will likely be faster in the
non-matching case.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
More information about the Cygwin-patches
mailing list