changeset 1263:24d323dfebea draft

fix printtask
author Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
date Sat, 19 Nov 2011 14:32:41 +0900
parents 4e6a6e620fc4
children 5153ce1b2001
files example/Prime/ppe/PrintTask.cc example/Prime/spe/PrintTask.cc
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/example/Prime/ppe/PrintTask.cc	Sat Nov 19 14:29:51 2011 +0900
+++ b/example/Prime/ppe/PrintTask.cc	Sat Nov 19 14:32:41 2011 +0900
@@ -23,8 +23,9 @@
 	/* 素数の判定結果が1ならば出力する */
 	for (long i = 0; i < length; i++) {
 		if ( input[i] == true ) {
-			printf("%ld\n",i);
+			printf("%ld ",i);
 		}
 	}
+	printf("\n");
 	return 0;
 }
--- a/example/Prime/spe/PrintTask.cc	Sat Nov 19 14:29:51 2011 +0900
+++ b/example/Prime/spe/PrintTask.cc	Sat Nov 19 14:32:41 2011 +0900
@@ -23,8 +23,9 @@
 	/* 素数の判定結果が1ならば出力する */
 	for (long i = 0; i < length; i++) {
 		if ( input[i] == true ) {
-			printf("%ld\n",i);
+			printf("%ld ",i);
 		}
 	}
+	printf("\n");
 	return 0;
 }