mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 14:00:30 +00:00
benchtests: Move iterator declaration into loop header
This is a minor style change to move the definition of I to its usage scope instead of at the top of the function. This is consistent with glibc style guidelines and more importantly it was getting in the way of my testing. * benchtests/bench-memcpy-walk.c (do_test): Move declaration of I into loop header. * benchtests/bench-memmove-walk.c (do_test): Likewise.
This commit is contained in:
parent
ffa81c22a3
commit
543477f78b
@ -1,4 +1,11 @@
|
||||
2018-05-07 Alexandre Oliva <oliva@gnu.org>
|
||||
2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
|
||||
|
||||
* benchtests/bench-memcpy-walk.c (test_main): Move declaration
|
||||
of I into loop header.
|
||||
* benchtests/bench-memmove-walk.c
|
||||
(test_main): Likewise.
|
||||
|
||||
2018-05-07 Alexandre Oliva <oliva@gnu.org>
|
||||
|
||||
Revert:
|
||||
2018-04-30 Raymond Nicholson <rain1@airmail.cc>
|
||||
|
@ -83,7 +83,6 @@ int
|
||||
test_main (void)
|
||||
{
|
||||
json_ctx_t json_ctx;
|
||||
size_t i;
|
||||
|
||||
test_init ();
|
||||
|
||||
@ -102,7 +101,7 @@ test_main (void)
|
||||
json_array_end (&json_ctx);
|
||||
|
||||
json_array_begin (&json_ctx, "results");
|
||||
for (i = START_SIZE; i <= MIN_PAGE_SIZE; i <<= 1)
|
||||
for (size_t i = START_SIZE; i <= MIN_PAGE_SIZE; i <<= 1)
|
||||
{
|
||||
/* Test length alignments from 0-16 bytes. */
|
||||
for (int j = 0; j < 8; j++)
|
||||
|
@ -86,7 +86,6 @@ int
|
||||
test_main (void)
|
||||
{
|
||||
json_ctx_t json_ctx;
|
||||
size_t i;
|
||||
|
||||
test_init ();
|
||||
|
||||
@ -106,7 +105,7 @@ test_main (void)
|
||||
|
||||
json_array_begin (&json_ctx, "results");
|
||||
/* Non-overlapping buffers. */
|
||||
for (i = START_SIZE; i <= MIN_PAGE_SIZE; i <<= 1)
|
||||
for (size_t i = START_SIZE; i <= MIN_PAGE_SIZE; i <<= 1)
|
||||
{
|
||||
/* Test length alignments from 0-16 bytes. */
|
||||
for (int j = 0; j < 8; j++)
|
||||
@ -117,7 +116,7 @@ test_main (void)
|
||||
}
|
||||
|
||||
/* Overlapping buffers. */
|
||||
for (i = START_SIZE; i <= MIN_PAGE_SIZE; i <<= 1)
|
||||
for (size_t i = START_SIZE; i <= MIN_PAGE_SIZE; i <<= 1)
|
||||
{
|
||||
/* Test length alignments from 0-16 bytes. */
|
||||
for (int j = 0; j < 8; j++)
|
||||
|
Loading…
Reference in New Issue
Block a user