Lines Matching refs:hs
56 const unsigned char *hs = (const unsigned char *) haystack; in __memmem() local
60 return (void *) hs; in __memmem()
62 return (void *) memchr (hs, ne[0], hs_len); in __memmem()
68 const unsigned char *end = hs + hs_len - ne_len; in __memmem()
72 uint32_t nw = ne[0] << 16 | ne[1], hw = hs[0] << 16 | hs[1]; in __memmem()
73 for (hs++; hs <= end && hw != nw; ) in __memmem()
74 hw = hw << 16 | *++hs; in __memmem()
75 return hw == nw ? (void *)hs - 1 : NULL; in __memmem()
80 return two_way_long_needle (hs, hs_len, ne, ne_len); in __memmem()
95 for ( ; hs <= end; ) in __memmem()
100 hs += m1; in __memmem()
101 tmp = shift[hash2 (hs)]; in __memmem()
103 while (tmp == 0 && hs <= end); in __memmem()
107 hs -= tmp; in __memmem()
113 if (m1 < 15 || memcmp (hs + offset, ne + offset, 8) == 0) in __memmem()
115 if (memcmp (hs, ne, m1) == 0) in __memmem()
116 return (void *) hs; in __memmem()
123 hs += shift1; in __memmem()