From 004b4e16d44ce3fd268c79727c388203909ffbb6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Couturier?= Date: Mon, 24 Feb 2020 22:36:54 +0100 Subject: [PATCH] aze --- IDA_new/ida_gf65_paper3.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/IDA_new/ida_gf65_paper3.cpp b/IDA_new/ida_gf65_paper3.cpp index 678047b..9692442 100644 --- a/IDA_new/ida_gf65_paper3.cpp +++ b/IDA_new/ida_gf65_paper3.cpp @@ -58,10 +58,10 @@ void display(mylong *mat, int r, int c) { printf("\n"); } -mylong *matrix_multiply(gf_t *gf, mylong *m1, mylong *m2, int r1, int c1, int r2, int c2, int w) +mylong *matrix_multiply(gf_t *gf, mylong *m1, mylong *m2, int r1, int c1, int r2, int c2, int w, int iii) { mylong *product; - int i, j, k; + int i=iii, j, k; product = (mylong *) malloc(sizeof(mylong)*r1*c2); for (i = 0; i < r1*c2; i++) product[i] = 0; @@ -631,10 +631,8 @@ int main(int argc, char **argv) // sleep(2); start = std::chrono::system_clock::now(); for(int i=0;i<1000;i++) { - float tt=i; - tt=t; - int tt2=tt; - matS2=matrix_multiply(&gf, matInvGs, matCs, tt2, tt2, tt2, len, w); + + matS2=matrix_multiply(&gf, matInvGs, matCs, t, t, t, len, w, i); } end = std::chrono::system_clock::now(); -- 2.39.5