From 8e9a49a0c8b0adf007613cbed5d26d451199f1fd Mon Sep 17 00:00:00 2001 From: anna_schlittenhardt Date: Sat, 19 Dec 2020 11:45:38 +0100 Subject: [PATCH] Added Code for 32x32 matrix that leaves 343 misses --- src/trans.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/trans.c b/src/trans.c index 93bb15b..75ce9a0 100644 --- a/src/trans.c +++ b/src/trans.c @@ -17,7 +17,6 @@ #include "cachelab.h" int is_transpose(int M, int N, int A[N][M], int B[M][N]); - /* * transpose_submit - This is the solution transpose function that you * will be graded on for Part B of the assignment. Do not change @@ -27,7 +26,26 @@ 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) + if(N == 32){ + int n, m, nn, mm; + + for (n=0; n