# HG changeset patch # User Daichi Toma # Date 1321745203 -32400 # Node ID 4e8c53b4c52a66eedb18b142291200cb5badb4ce # Parent ff23aec3d651bd8ef50ddc19afa49db9d4e787aa fix to run Miller_rabin on PS3 diff -r ff23aec3d651 -r 4e8c53b4c52a example/Miller_Rabin/main.cc --- 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)); /* 判定結果を収める配列 */