Mercurial > hg > Game > Cerium
comparison example/Prime/ppe/PrintTask.cc @ 1233:247da1f5e625 draft
fix
author | Daichi Toma <amothic@gmail.com> |
---|---|
date | Tue, 18 Oct 2011 12:25:08 +0900 |
parents | 2dfac651288e |
children | 9df036b11eae |
comparison
equal
deleted
inserted
replaced
1232:2dfac651288e | 1233:247da1f5e625 |
---|---|
18 bool *input = (bool*)smanager->get_input(rbuf, 0); /* 出力する配列 */ | 18 bool *input = (bool*)smanager->get_input(rbuf, 0); /* 出力する配列 */ |
19 | 19 |
20 /* 素数の判定結果が1ならば出力する */ | 20 /* 素数の判定結果が1ならば出力する */ |
21 for (long i = 0; i < length; i++) { | 21 for (long i = 0; i < length; i++) { |
22 if ( input[i] == true ) { | 22 if ( input[i] == true ) { |
23 printf("%d ",i); | 23 printf("%ld ",i); |
24 } | 24 } |
25 } | 25 } |
26 printf("\n"); | 26 printf("\n"); |
27 return 0; | 27 return 0; |
28 } | 28 } |