changeset 1262:4e6a6e620fc4 draft

modify
author Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
date Sat, 19 Nov 2011 14:29:51 +0900
parents 800e6e7abc59
children 24d323dfebea
files example/Prime/ppe/Prime.cc
diffstat 1 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/example/Prime/ppe/Prime.cc	Sat Nov 19 13:57:47 2011 +0900
+++ b/example/Prime/ppe/Prime.cc	Sat Nov 19 14:29:51 2011 +0900
@@ -11,11 +11,7 @@
 {
 	long start = (long)smanager->get_param(0);	/* 素数判定の開始地点 */
 	long end   = (long)smanager->get_param(1);	/* 素数判定の終了地点 */
-<<<<<<< local
-	long range = end - start;		        /* 判定する範囲	      */
-=======
 	long range = end - start;					/* 判定する範囲		  */
->>>>>>> other
 
 	/* 判定結果を収める配列を受け取る */
 	bool *output = (bool*)smanager->get_output(wbuf, 0);
@@ -26,16 +22,10 @@
 	}
 
 
-<<<<<<< local
- 	for (int i = start, index = 0; i < end; i++, index++) {
- 		int limit = (int)sqrt((double) i);	       /* 割る数の最大値を求める */
-		for (int j = 2; j <= limit; j++) {
-=======
 
 	for (long i = start, index = 0; i < end; i++, index++) {
 		long limit = (long)sqrt((double) i);		/* 割る数の最大値を求める */
 		for (long j = 2; j <= limit; j++) {
->>>>>>> other
 			/* 割り切れた場合、0を代入し素数じゃないという判定を下す */
 			if (i % j == 0) {
 				output[index] = false;