changeset 1252:7ee76065ec12 draft

add collada file reader
author Taiki TAIRA <e095767@ie.u-ryukyu.ac.jp>
date Wed, 16 Nov 2011 12:39:07 +0900
parents 6da91e7cbffb (current diff) d2f70da2aa19 (diff)
children bb9c885c1cb5 34944900f266
files
diffstat 5 files changed, 6 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/example/Miller_Rabin/Makefile.def	Fri Nov 11 18:17:26 2011 +0900
+++ b/example/Miller_Rabin/Makefile.def	Wed Nov 16 12:39:07 2011 +0900
@@ -8,8 +8,8 @@
 CERIUM = ../../../Cerium
 
 CC      = g++
-#CFLAGS  = -O9 -Wall
-CFLAGS  = -g -Wall
+CFLAGS  = -O9 -Wall
+#CFLAGS  = -g -Wall
 
 INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
 LIBS = -L${CERIUM}/TaskManager
--- a/example/Miller_Rabin/ppe/Prime.cc	Fri Nov 11 18:17:26 2011 +0900
+++ b/example/Miller_Rabin/ppe/Prime.cc	Wed Nov 16 12:39:07 2011 +0900
@@ -16,7 +16,7 @@
 	U64 result = 1;
 
 	while (power > 0) {
-		if ( power & 1 == 1 ) {
+		if ( (power & 1) == 1 ) {
 			result = (result * base) % mod;
 		}
 		base = ( base * base ) % mod;
--- a/example/Miller_Rabin/spe/Prime.cc	Fri Nov 11 18:17:26 2011 +0900
+++ b/example/Miller_Rabin/spe/Prime.cc	Wed Nov 16 12:39:07 2011 +0900
@@ -16,7 +16,7 @@
 	U64 result = 1;
 
 	while (power > 0) {
-		if ( power & 1 == 1 ) {
+		if ( (power & 1) == 1 ) {
 			result = (result * base) % mod;
 		}
 		base = ( base * base ) % mod;
--- a/example/Prime/ppe/PrintTask.cc	Fri Nov 11 18:17:26 2011 +0900
+++ b/example/Prime/ppe/PrintTask.cc	Wed Nov 16 12:39:07 2011 +0900
@@ -23,9 +23,8 @@
 	/* 素数の判定結果が1ならば出力する */
 	for (long i = 0; i < length; i++) {
 		if ( input[i] == true ) {
-			printf("%ld ",i);
+			printf("%ld\n",i);
 		}
 	}
-	printf("\n");
 	return 0;
 }
--- a/example/Prime/spe/PrintTask.cc	Fri Nov 11 18:17:26 2011 +0900
+++ b/example/Prime/spe/PrintTask.cc	Wed Nov 16 12:39:07 2011 +0900
@@ -23,9 +23,8 @@
 	/* 素数の判定結果が1ならば出力する */
 	for (long i = 0; i < length; i++) {
 		if ( input[i] == true ) {
-			printf("%ld ",i);
+			printf("%ld\n",i);
 		}
 	}
-	printf("\n");
 	return 0;
 }