# HG changeset patch # User Daichi Toma # Date 1321744380 -32400 # Node ID ff23aec3d651bd8ef50ddc19afa49db9d4e787aa # Parent a67d25aec2531a0f4392c312fb1152a9f331ac67 changed print style diff -r a67d25aec253 -r ff23aec3d651 example/Miller_Rabin/ppe/PrintTask.cc --- a/example/Miller_Rabin/ppe/PrintTask.cc Sun Nov 20 08:09:26 2011 +0900 +++ b/example/Miller_Rabin/ppe/PrintTask.cc Sun Nov 20 08:13:00 2011 +0900 @@ -19,13 +19,14 @@ U64 size = ((U64)smanager->get_param(0)) >> 1; /* 出力する範囲 */ bool *input = (bool*)smanager->get_input(rbuf, 0); /* 出力する配列 */ - printf("%d\n",(int)2); + printf("%d ",(int)2); /* 素数の判定結果が1ならば出力する */ for (U64 i = 1; i < size; i++) { if ( input[i] == true ) { - printf("%llu\n",i*2+1); + printf("%llu ",i*2+1); } } + printf("\n"); return 0; } diff -r a67d25aec253 -r ff23aec3d651 example/Miller_Rabin/spe/PrintTask.cc --- a/example/Miller_Rabin/spe/PrintTask.cc Sun Nov 20 08:09:26 2011 +0900 +++ b/example/Miller_Rabin/spe/PrintTask.cc Sun Nov 20 08:13:00 2011 +0900 @@ -19,13 +19,14 @@ U64 size = ((U64)smanager->get_param(0)) >> 1; /* 出力する範囲 */ bool *input = (bool*)smanager->get_input(rbuf, 0); /* 出力する配列 */ - printf("%d\n",(int)2); + printf("%d ",(int)2); /* 素数の判定結果が1ならば出力する */ for (U64 i = 1; i < size; i++) { if ( input[i] == true ) { - printf("%llu\n",i*2+1); + printf("%llu ",i*2+1); } } + printf("\n"); return 0; }