changeset 1243:9df036b11eae draft

fix printtask
author Daichi Toma <amothic@gmail.com>
date Tue, 01 Nov 2011 19:23:11 +0900
parents 9d37fa6bc1da
children cd50c48f45e7
files example/Prime/ppe/PrintTask.cc example/Prime/spe/PrintTask.cc
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 ) {
--- 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 ) {