1 /* Copyright (C) 2002 Free Software Foundation.
3 Test strlen with various combinations of pointer alignments and lengths to
4 make sure any optimizations in the library are correct.
6 Written by Michael Meissner, March 9, 2002. */
12 #define MAX_OFFSET (sizeof (long long))
16 #define MAX_TEST (8 * sizeof (long long))
20 #define MAX_EXTRA (sizeof (long long))
23 #define MAX_LENGTH (MAX_OFFSET + MAX_TEST + MAX_EXTRA + 1)
33 size_t off
, len
, len2
, i
;
36 for (off
= 0; off
< MAX_OFFSET
; off
++)
37 for (len
= 0; len
< MAX_TEST
; len
++)
40 for (i
= 0; i
< off
; i
++)
43 for (i
= 0; i
< len
; i
++)
47 for (i
= 0; i
< MAX_EXTRA
; i
++)