diff options
-rw-r--r-- | polly/lib/JSON/json_writer.cpp | 2 | ||||
-rw-r--r-- | polly/www/experiments/matmul/matmul.c | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/polly/lib/JSON/json_writer.cpp b/polly/lib/JSON/json_writer.cpp index bf475c39df5..e1934bbd739 100644 --- a/polly/lib/JSON/json_writer.cpp +++ b/polly/lib/JSON/json_writer.cpp @@ -120,7 +120,7 @@ std::string valueToQuotedString( const char *value ) std::string result; result.reserve(maxsize); // to avoid lots of mallocs result += "\""; - for (const char* c=value; *c != 0; ++c) + for (const char* c = value; *c != 0; ++c) { switch(*c) { diff --git a/polly/www/experiments/matmul/matmul.c b/polly/www/experiments/matmul/matmul.c index edb2455ae8f..49fffc808f3 100644 --- a/polly/www/experiments/matmul/matmul.c +++ b/polly/www/experiments/matmul/matmul.c @@ -9,8 +9,8 @@ void init_array() { int i, j; - for (i=0; i<N; i++) { - for (j=0; j<N; j++) { + for (i = 0; i < N; i++) { + for (j = 0; j < N; j++) { A[i][j] = (1+(i*j)%1024)/2.0; B[i][j] = (1+(i*j)%1024)/2.0; } @@ -21,8 +21,8 @@ void print_array() { int i, j; - for (i=0; i<N; i++) { - for (j=0; j<N; j++) { + for (i = 0; i < N; i++) { + for (j = 0; j < N; j++) { fprintf(stdout, "%lf ", C[i][j]); if (j%80 == 79) fprintf(stdout, "\n"); } @@ -37,10 +37,10 @@ int main() init_array(); - for(i=0; i<N; i++) { - for(j=0; j<N; j++) { + for (i = 0; i < N; i++) { + for (j = 0; j < N; j++) { C[i][j] = 0; - for(k=0; k<N; k++) + for (k = 0; k < N; k++) C[i][j] = C[i][j] + A[i][k] * B[k][j]; } } |