Lines Matching refs:memchr_buf
33 static uint8_t *memchr_buf; variable
52 memchr_buf = (uint8_t *)addr + pgsz; in memchr_setup()
74 (void) memset(memchr_buf, 0, memchr_buflen); in memchr_basic()
75 memchr_buf[0] = 'r'; in memchr_basic()
77 if ((found = memchr(memchr_buf, 'r', memchr_buflen)) != memchr_buf) { in memchr_basic()
79 "expected %p", found, memchr_buf); in memchr_basic()
83 if ((found = memrchr(memchr_buf, 'r', memchr_buflen)) != memchr_buf) { in memchr_basic()
85 "expected %p", found, memchr_buf); in memchr_basic()
89 memchr_buf[memchr_buflen - 1] = 'r'; in memchr_basic()
90 targ = &memchr_buf[memchr_buflen - 1]; in memchr_basic()
92 if ((found = memchr(memchr_buf, 'r', memchr_buflen)) != memchr_buf) { in memchr_basic()
94 "expected %p", found, memchr_buf); in memchr_basic()
98 if ((found = memrchr(memchr_buf, 'r', memchr_buflen)) != targ) { in memchr_basic()
105 memchr_buf[0] = 0; in memchr_basic()
107 if ((found = memchr(memchr_buf, 'r', memchr_buflen)) != targ) { in memchr_basic()
113 if ((found = memrchr(memchr_buf, 'r', memchr_buflen)) != targ) { in memchr_basic()
131 (void) memset(memchr_buf, 0x23, memchr_buflen); in memchr_notfound()
133 if ((found = memchr(memchr_buf, 0, memchr_buflen)) != NULL) { in memchr_notfound()
139 if (memrchr(memchr_buf, 0, memchr_buflen) != NULL) { in memchr_notfound()
145 if (memchr(memchr_buf, 0x24, memchr_buflen) != NULL) { in memchr_notfound()
151 if (memrchr(memchr_buf, 0x24, memchr_buflen) != NULL) { in memchr_notfound()
157 memchr_buf[1] = 0x24; in memchr_notfound()
159 if (memchr(memchr_buf, 0x24, 1) != NULL) { in memchr_notfound()
165 if (memrchr(memchr_buf, 0x24, 1) != NULL) { in memchr_notfound()
171 memchr_buf[1] = 0x24; in memchr_notfound()
173 if (memchr(memchr_buf + 1, 0x23, 1) != NULL) { in memchr_notfound()
179 if (memrchr(memchr_buf + 1, 0x23, 1) != NULL) { in memchr_notfound()
200 (void) memset(memchr_buf, 0x42, memchr_buflen); in memchr_truncation()
202 if ((found = memchr(memchr_buf, 0x42, memchr_buflen)) != memchr_buf) { in memchr_truncation()
204 "expected %p", found, memchr_buf); in memchr_truncation()
208 targ = &memchr_buf[memchr_buflen - 1]; in memchr_truncation()
210 if ((found = memrchr(memchr_buf, 0x42, memchr_buflen)) != targ) { in memchr_truncation()
216 if ((found = memchr(memchr_buf, 0x430042, memchr_buflen)) != in memchr_truncation()
217 memchr_buf) { in memchr_truncation()
219 "found %p, expected %p", found, memchr_buf); in memchr_truncation()
223 if ((found = memrchr(memchr_buf, 0x430042, memchr_buflen)) != targ) { in memchr_truncation()
232 if ((found = memchr(memchr_buf, -190, memchr_buflen)) != memchr_buf) { in memchr_truncation()
234 "found %p, expected %p", found, memchr_buf); in memchr_truncation()
238 if ((found = memrchr(memchr_buf, -190, memchr_buflen)) != targ) { in memchr_truncation()
244 if ((found = memchr(memchr_buf, -190, memchr_buflen)) != memchr_buf) { in memchr_truncation()
246 "found %p, expected %p", found, memchr_buf); in memchr_truncation()
250 if ((found = memrchr(memchr_buf, -190, memchr_buflen)) != targ) { in memchr_truncation()
256 if ((found = memchr(memchr_buf, 0x42424200, memchr_buflen)) != NULL) { in memchr_truncation()
262 if ((found = memrchr(memchr_buf, 0x42424200, memchr_buflen)) != NULL) { in memchr_truncation()