+2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
+
+ * benchtests/bench-memmove.c (do_one_test): Remove unused
+ ORIG_SRC.
+ (do_test): Adjust.
+ * benchtests/bench-memmove-large.c (do_one_test): Remove unused
+ ORIG_SRC.
+ (do_test): Adjust.
+
2019-01-13 Jim Wilson <jimw@sifive.com>
[BZ #24040]
typedef char *(*proto_t) (char *, const char *, size_t);
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 = 16;
timing_t start, stop, cur;
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)
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);
}
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;
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)
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);