From: Niels Möller Date: Thu, 30 Sep 2010 11:37:25 +0000 (+0200) Subject: (time_memxor): Count size of unsigned long as "block size" for memxor. X-Git-Tag: nettle_2.2_release_20110711~237 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07f9e4361a96268ff57af1f6d071a778f2fd0ab2;p=thirdparty%2Fnettle.git (time_memxor): Count size of unsigned long as "block size" for memxor. Rev: nettle/examples/nettle-benchmark.c:1.12 --- diff --git a/examples/nettle-benchmark.c b/examples/nettle-benchmark.c index 0a4a0d91..4e262629 100644 --- a/examples/nettle-benchmark.c +++ b/examples/nettle-benchmark.c @@ -284,9 +284,11 @@ time_memxor(void) info.src = src; info.dst = dst; - display ("memxor", "aligned", 0, time_function(bench_memxor, &info)); + display ("memxor", "aligned", sizeof(unsigned long), + time_function(bench_memxor, &info)); info.src++; - display ("memxor", "unaligned", 0, time_function(bench_memxor, &info)); + display ("memxor", "unaligned", sizeof(unsigned long), + time_function(bench_memxor, &info)); } static void