Lines Matching +full:0 +full:x31
33 for (size_t i = 0; i < sizeof(instance.data); i++) { \
35 "line %d: '%s' not initialized to 0x%02x @ %zu (saw 0x%02x)\n", \
38 } while (0)
42 for (size_t i = 0; i < sizeof(one); i++) { \
44 "line %d: %s.data[%zu] (0x%02x) != %s.data[%zu] (0x%02x)\n", \
48 } while (0)
54 .data = { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, in memcpy_test()
55 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, in memcpy_test()
56 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, in memcpy_test()
57 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, in memcpy_test()
62 .data = { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, in memcpy_test()
63 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, in memcpy_test()
64 0x00, 0x00, 0x00, 0x20, 0x20, 0x20, 0x20, 0x20, in memcpy_test()
65 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, in memcpy_test()
69 .data = { 0x00, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, in memcpy_test()
70 0x20, 0x00, 0x00, 0x20, 0x20, 0x20, 0x20, 0x20, in memcpy_test()
71 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, in memcpy_test()
72 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, in memcpy_test()
80 check(control, 0x20); in memcpy_test()
81 check(zero, 0); in memcpy_test()
114 .data = { 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, in memmove_test()
115 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, in memmove_test()
116 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, in memmove_test()
117 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, in memmove_test()
122 .data = { 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, in memmove_test()
123 0x99, 0x99, 0x99, 0x99, 0x00, 0x00, 0x00, 0x00, in memmove_test()
124 0x00, 0x00, 0x00, 0x99, 0x99, 0x99, 0x99, 0x99, in memmove_test()
125 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, in memmove_test()
129 .data = { 0x00, 0x00, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, in memmove_test()
130 0x99, 0x99, 0x00, 0x00, 0x00, 0x99, 0x99, 0x99, in memmove_test()
131 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, in memmove_test()
132 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, in memmove_test()
136 .data = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, in memmove_test()
137 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, in memmove_test()
138 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, in memmove_test()
139 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, in memmove_test()
143 .data = { 0x00, 0x01, 0x00, 0x01, 0x02, 0x03, 0x04, 0x07, in memmove_test()
144 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, in memmove_test()
145 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, in memmove_test()
146 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, in memmove_test()
154 check(control, 0x99); in memmove_test()
155 check(zero, 0); in memmove_test()
186 larger_array[256] = 0xAAu; in memmove_test()
192 KUNIT_ASSERT_EQ(test, larger_array[0], 0xAAu); in memmove_test()
193 KUNIT_ASSERT_EQ(test, larger_array[256], 0x00); in memmove_test()
195 memchr(larger_array + 1, 0xaa, ARRAY_SIZE(larger_array) - 1)); in memmove_test()
197 larger_array[0] = 0xBBu; in memmove_test()
199 KUNIT_ASSERT_EQ(test, larger_array[0], 0xBBu); in memmove_test()
200 KUNIT_ASSERT_EQ(test, larger_array[256], 0xBBu); in memmove_test()
201 KUNIT_ASSERT_NULL(test, memchr(larger_array + 1, 0xBBu, 256 - 1)); in memmove_test()
203 memchr(larger_array + 257, 0xBBu, ARRAY_SIZE(larger_array) - 257)); in memmove_test()
211 .data = { 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, in memset_test()
212 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, in memset_test()
213 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, in memset_test()
214 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, in memset_test()
218 .data = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, in memset_test()
219 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, in memset_test()
220 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, in memset_test()
221 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, in memset_test()
225 .data = { 0x30, 0x30, 0x30, 0x30, 0x31, 0x31, 0x31, 0x31, in memset_test()
226 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, in memset_test()
227 0x31, 0x31, 0x31, 0x31, 0x30, 0x30, 0x30, 0x30, in memset_test()
228 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, in memset_test()
232 .data = { 0x60, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, in memset_test()
233 0x30, 0x61, 0x61, 0x30, 0x30, 0x30, 0x30, 0x30, in memset_test()
234 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, in memset_test()
235 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, in memset_test()
239 .data = { 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x72, in memset_test()
240 0x72, 0x72, 0x72, 0x72, 0x72, 0x72, 0x72, 0x72, in memset_test()
241 0x72, 0x72, 0x72, 0x72, 0x72, 0x72, 0x72, 0x72, in memset_test()
242 0x72, 0x72, 0x72, 0x72, 0x72, 0x72, 0x72, 0x72, in memset_test()
246 .data = { 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, in memset_test()
247 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, in memset_test()
248 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, in memset_test()
249 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, in memset_test()
257 check(control, 0x30); in memset_test()
258 check(dest, 0); in memset_test()
265 memset(dest.data, 0xff, sizeof(dest.data)); in memset_test()
270 memset(dest.data + 4, 0x31, 16); in memset_test()
276 value = 0x60; in memset_test()
285 memset_after(&dest, 0x72, three); in memset_test()
290 memset_startat(&dest, 0x79, four); in memset_test()
301 int failed_rng = 0; in set_random_nonzero()
303 while (*byte == 0) { in set_random_nonzero()
316 set_random_nonzero(test, &large_src[0]); in init_large()
320 memset(large_dst, 0, ARRAY_SIZE(large_dst)); in init_large()
334 for (int offset = 0; offset < ARRAY_SIZE(large_src); offset++) { in copy_large_test()
346 memcmp(large_dst, large_zero, offset), 0, in copy_large_test()
350 memcmp(&large_dst[right_zero_pos], large_zero, right_zero_size), 0, in copy_large_test()
355 memcmp(large_dst + offset, large_src, bytes), 0, in copy_large_test()
359 memset(large_dst + offset, 0, bytes); in copy_large_test()
382 * example, calling next_step(idx, 1, 15, 3) with idx starting at 0
409 KUNIT_ASSERT_EQ_MSG(test, memcmp(&large_dst[d_off], large_src, bytes), 0, in inner_loop()
415 left_zero_pos = 0; in inner_loop()
422 src_orig_pos = 0; in inner_loop()
425 left_zero_pos = 0; in inner_loop()
438 memcmp(&large_dst[src_pos], &large_src[src_orig_pos], src_size), 0, in inner_loop()
444 memcmp(&large_dst[left_zero_pos], large_zero, left_zero_size), 0, in inner_loop()
449 memcmp(&large_dst[right_zero_pos], large_zero, right_zero_size), 0, in inner_loop()
455 memset(&large_dst[pos], 0, right_zero_pos - pos); in inner_loop()
481 for (int d_off = 0; d_off < offset_max; d_off++) { in memmove_overlap_test()
482 int s_start = max(d_off - bytes, 0); in memmove_overlap_test()