changeset 1267:6b974390833b draft

fix Miller_Rabin
author Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
date Sat, 19 Nov 2011 15:07:07 +0900
parents c67331f3b4da
children f0808a329663
files example/Miller_Rabin/main.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/example/Miller_Rabin/main.cc	Sat Nov 19 15:03:56 2011 +0900
+++ b/example/Miller_Rabin/main.cc	Sat Nov 19 15:07:07 2011 +0900
@@ -62,7 +62,7 @@
 	}
 
 	/* 出力用のタスクに判定結果を収めた配列を渡す */ 
-	print->set_inData(0,output,sizeof(bool)*task_num*div_size);
+	print->set_inData(0,output,sizeof(bool)*(task_num*div_size >> 1));
 	/* 出力する数を渡す */
 	print->set_param(0,(memaddr)num);
 	/* printするかどうかを渡す */