changeset 1272:4e8c53b4c52a draft

fix to run Miller_rabin on PS3
author Daichi Toma <amothic@gmail.com>
date Sun, 20 Nov 2011 08:26:43 +0900
parents ff23aec3d651
children c1c8dbed726d
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	Sun Nov 20 08:13:00 2011 +0900
+++ b/example/Miller_Rabin/main.cc	Sun Nov 20 08:26:43 2011 +0900
@@ -38,7 +38,7 @@
 prime_init(TaskManager *manager)
 {
 
-	U64 div_size = 1000;
+	U64 div_size = 256;
 	U64 task_num = (num + div_size - 1) / div_size;
 
 	bool *output = (bool*)manager->allocate(sizeof(bool)*(task_num*div_size >> 1)); /* 判定結果を収める配列 */