Lines Matching +full:max +full:- +full:size

1 /* A minor test-program for memmove.
29 /* Test moves of 0..MAX bytes; overlapping-src-higher,
30 overlapping-src-lower and non-overlapping. The overlap varies with
31 1..N where N is the size moved. This means an order of MAX**2
32 iterations. The size of an octet may seem appropriate for MAX and
34 making this 256 added 90s to the test-run (2GHz P4) while 64 (4s) was
36 #define MAX 64 macro
51 /* A safe target-independent memmove. */
58 while (n-- > 0) in mymemmove()
64 while (n-- > 0) in mymemmove()
65 *--dest = *--src; in mymemmove()
70 pass -fno-builtin-memmove. */
94 fill (unsigned char dest[MAX*3]) in fill()
97 for (i = 0; i < MAX*3; i++) in fill()
98 dest[i] = (10 + i) % MAX; in fill()
110 unsigned char from_test[MAX*3]; in main()
111 unsigned char to_test[MAX*3]; in main()
112 unsigned char from_known[MAX*3]; in main()
113 unsigned char to_known[MAX*3]; in main()
115 /* Non-overlap. */ in main()
116 for (i = 0; i < MAX; i++) in main()
122 xmemmove (to_test + MAX, 1 + from_test + MAX, i); in main()
126 mymemmove (to_known + MAX, 1 + from_known + MAX, i); in main()
131 DEBUGP ("memmove failed non-overlap test for %lu bytes\n", (unsigned long) i); in main()
135 /* Overlap-from-before. */ in main()
136 for (i = 0; i < MAX; i++) in main()
142 xmemmove (to_test + MAX * 2 - i, to_test + MAX * 2 - i - j, i); in main()
145 mymemmove (to_known + MAX * 2 - i, to_known + MAX * 2 - i - j, i); in main()
157 /* Overlap-from-after. */ in main()
158 for (i = 0; i < MAX; i++) in main()
164 xmemmove (to_test + MAX, to_test + MAX + j, i); in main()
167 mymemmove (to_known + MAX, to_known + MAX + j, i); in main()