# HG changeset patch # User Daichi Toma # Date 1320142991 -32400 # Node ID 9df036b11eae16cd67ae6accdc5e5e02aa725e94 # Parent 9d37fa6bc1dad7f80ade56be927b5c02d8c084ec fix printtask diff -r 9d37fa6bc1da -r 9df036b11eae example/Prime/ppe/PrintTask.cc --- a/example/Prime/ppe/PrintTask.cc Tue Nov 01 19:01:13 2011 +0900 +++ b/example/Prime/ppe/PrintTask.cc Tue Nov 01 19:23:11 2011 +0900 @@ -17,6 +17,9 @@ long length = (long)smanager->get_param(0); /* 出力する範囲 */ bool *input = (bool*)smanager->get_input(rbuf, 0); /* 出力する配列 */ + input[0] = false; + input[1] = false; + /* 素数の判定結果が1ならば出力する */ for (long i = 0; i < length; i++) { if ( input[i] == true ) { diff -r 9d37fa6bc1da -r 9df036b11eae example/Prime/spe/PrintTask.cc --- a/example/Prime/spe/PrintTask.cc Tue Nov 01 19:01:13 2011 +0900 +++ b/example/Prime/spe/PrintTask.cc Tue Nov 01 19:23:11 2011 +0900 @@ -17,6 +17,9 @@ long length = (long)smanager->get_param(0); /* 出力する範囲 */ bool *input = (bool*)smanager->get_input(rbuf, 0); /* 出力する配列 */ + input[0] = false; + input[1] = false; + /* 素数の判定結果が1ならば出力する */ for (long i = 0; i < length; i++) { if ( input[i] == true ) {