summaryrefslogtreecommitdiff
path: root/benchtests/bench-memmove.c
diff options
context:
space:
mode:
Diffstat (limited to 'benchtests/bench-memmove.c')
-rw-r--r--benchtests/bench-memmove.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/benchtests/bench-memmove.c b/benchtests/bench-memmove.c
index a5d957791a..a4d5ecd638 100644
--- a/benchtests/bench-memmove.c
+++ b/benchtests/bench-memmove.c
@@ -47,8 +47,8 @@ simple_memmove (char *dst, const char *src, size_t n)
}
static void
-do_one_test (json_ctx_t *json_ctx, impl_t *impl, char *dst, char *src, const
- char *orig_src, size_t len)
+do_one_test (json_ctx_t *json_ctx, impl_t *impl, char *dst, char *src,
+ size_t len)
{
size_t i, iters = INNER_LOOP_ITERS;
timing_t start, stop, cur;
@@ -79,7 +79,7 @@ do_test (json_ctx_t *json_ctx, size_t align1, size_t align2, size_t len)
if (align2 + len >= page_size)
return;
- s1 = (char *) (buf1 + align1);
+ s1 = (char *) (buf2 + align1);
s2 = (char *) (buf2 + align2);
for (i = 0, j = 1; i < len; i++, j += 23)
@@ -92,7 +92,7 @@ do_test (json_ctx_t *json_ctx, size_t align1, size_t align2, size_t len)
json_array_begin (json_ctx, "timings");
FOR_EACH_IMPL (impl, 0)
- do_one_test (json_ctx, impl, s2, (char *) (buf2 + align1), s1, len);
+ do_one_test (json_ctx, impl, s2, s1, len);
json_array_end (json_ctx);
json_element_object_end (json_ctx);