diff --git a/src/trans.c b/src/trans.c index ecbe6e2..5edb029 100644 --- a/src/trans.c +++ b/src/trans.c @@ -27,15 +27,31 @@ int is_transpose(int M, int N, int A[N][M], int B[M][N]); char transpose_submit_desc[] = "Transpose submission"; void transpose_submit(int M, int N, int A[N][M], int B[M][N]) { - //343 misses (goal: <300; 0 points if >600) + + int blocksize=0; + switch (N) + { + case 32: + blocksize = 8; + break; + case 64: + blocksize = 4; + break; + case 67: + blocksize = 18; + break; + default: + break; + } + if(N == 32){ int n, m, nn, mm, diag_pos, diag_value; - for (n=0; n