]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(time_memxor): Count size of unsigned long as "block size" for memxor.
authorNiels Möller <nisse@lysator.liu.se>
Thu, 30 Sep 2010 11:37:25 +0000 (13:37 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Thu, 30 Sep 2010 11:37:25 +0000 (13:37 +0200)
Rev: nettle/examples/nettle-benchmark.c:1.12

examples/nettle-benchmark.c

index 0a4a0d91e8664fd05b58a4d2e8d87dca7f7d0f08..4e262629cfa0848366de703592521c9312f3b36f 100644 (file)
@@ -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