}
}
-static int bench_mem_common(int argc, const char **argv,
- const char *prefix __maybe_unused,
- struct bench_mem_info *info)
+static int bench_mem_common(int argc, const char **argv, struct bench_mem_info *info)
{
int i;
size_t len;
return (double)(((double)len * iterations) / timeval2double(&tv_diff));
}
-int bench_mem_memcpy(int argc, const char **argv,
- const char *prefix __maybe_unused)
+int bench_mem_memcpy(int argc, const char **argv, const char *prefix __maybe_unused)
{
struct bench_mem_info info = {
.routines = memcpy_routines,
.usage = bench_mem_memcpy_usage,
};
- return bench_mem_common(argc, argv, prefix, &info);
+ return bench_mem_common(argc, argv, &info);
}
static void memset_alloc_mem(void **dst, size_t length)
.usage = bench_mem_memset_usage,
};
- return bench_mem_common(argc, argv, prefix, &info);
+ return bench_mem_common(argc, argv, &info);
}