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]

Re: [PATCH v2] Improve memmem.


OndÅej BÃlka wrote:
I am using different end here

+  const unsigned char *haystack_end = (const unsigned char *)
+                                      haystack_start + haystack_len
+                                      - needle_len + 1;

Ah, sorry, didn't see that. But in that case the name 'haystack_end' is misleading -- that's not the haystack's end, but is something else. So a renaming would appear to be in order.

Main motivations is that pairs are still too common

Too common where?  Do we have traces of actual programs?


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