mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
WP cleanup
This commit is contained in:
@ -142,17 +142,17 @@ static void
|
|||||||
do_random_tests (void)
|
do_random_tests (void)
|
||||||
{
|
{
|
||||||
size_t i, j, n, align1, align2, len;
|
size_t i, j, n, align1, align2, len;
|
||||||
|
|
||||||
UCHAR *p1 = (UCHAR *) (buf1 + page_size) - 512;
|
UCHAR *p1 = (UCHAR *) (buf1 + page_size) - 512;
|
||||||
UCHAR *p2 = (UCHAR *) (buf2 + page_size) - 512;
|
UCHAR *p2 = (UCHAR *) (buf2 + page_size) - 512;
|
||||||
UCHAR *res;
|
UCHAR *res;
|
||||||
|
|
||||||
for (n = 0; n < ITERATIONS; n++)
|
for (n = 0; n < ITERATIONS; n++)
|
||||||
{
|
{
|
||||||
/* For wcsrchr: align1 and align2 here mean align not in bytes, but in wchar_ts,
|
/* For wcsrchr: align1 and align2 here mean align not in bytes,
|
||||||
in bytes it will equal to align * (sizeof (wchar_t)).
|
but in wchar_ts, in bytes it will equal to align * (sizeof
|
||||||
For strrchr we need to check all alignments from 0 to 63 since some assembly implementations
|
(wchar_t)). For strrchr we need to check all alignments from
|
||||||
have separate prolog for alignments more 48. */
|
0 to 63 since some assembly implementations have separate
|
||||||
|
prolog for alignments more 48. */
|
||||||
|
|
||||||
align1 = random () & (63 / sizeof(CHAR));
|
align1 = random () & (63 / sizeof(CHAR));
|
||||||
if (random () & 1)
|
if (random () & 1)
|
||||||
|
Reference in New Issue
Block a user