1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

WP cleanup

This commit is contained in:
Ulrich Drepper
2011-12-17 14:27:26 -05:00
parent df33a8fb1c
commit a2d18b64ed
2 changed files with 11 additions and 11 deletions

View File

@ -142,17 +142,17 @@ static void
do_random_tests (void)
{
size_t i, j, n, align1, align2, len;
UCHAR *p1 = (UCHAR *) (buf1 + page_size) - 512;
UCHAR *p2 = (UCHAR *) (buf2 + page_size) - 512;
UCHAR *res;
for (n = 0; n < ITERATIONS; n++)
{
/* For wcsrchr: align1 and align2 here mean align not in bytes, but in wchar_ts,
in bytes it will equal to align * (sizeof (wchar_t)).
For strrchr we need to check all alignments from 0 to 63 since some assembly implementations
have separate prolog for alignments more 48. */
/* For wcsrchr: align1 and align2 here mean align not in bytes,
but in wchar_ts, in bytes it will equal to align * (sizeof
(wchar_t)). For strrchr we need to check all alignments from
0 to 63 since some assembly implementations have separate
prolog for alignments more 48. */
align1 = random () & (63 / sizeof(CHAR));
if (random () & 1)