This is the mail archive of the cygwin-patches mailing list for the Cygwin 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]

Re: [PATCH] Export strchrnul (pending newlib patch)


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


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