From 106cac666097f4dfa0470daf01ebcae0872083e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Couturier?= Date: Tue, 25 Feb 2020 04:12:10 +0100 Subject: [PATCH] new --- IDA_new/ida_gf65_paper3.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/IDA_new/ida_gf65_paper3.cpp b/IDA_new/ida_gf65_paper3.cpp index dc4d3ab..74495b7 100644 --- a/IDA_new/ida_gf65_paper3.cpp +++ b/IDA_new/ida_gf65_paper3.cpp @@ -58,7 +58,7 @@ 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, int iii) +mylong *matrix_multiply(gf_t *gf, mylong *m1, mylong *m2, int r1, int c1, int r2, int c2, int w, float *toto) { mylong *product; int i=iii, j, k; @@ -73,6 +73,7 @@ mylong *matrix_multiply(gf_t *gf, mylong *m1, mylong *m2, int r1, int c1, int r2 } } } + *toto=*toto+0.021; return product; } @@ -630,16 +631,17 @@ int main(int argc, char **argv) // sleep(2); start = std::chrono::system_clock::now(); + float toto=0.001; for(int i=0;i<1000;i++) { - matS2=matrix_multiply(&gf, matInvGs, matCs, t, t, t, len, w, i); + matS2=matrix_multiply(&gf, matInvGs, matCs, t, t, t, len, w, toto); } end = std::chrono::system_clock::now(); elapsed_seconds = end-start; // cout << "elapsed time: " << elapsed_seconds.count() << "s\n"; total_time+=elapsed_seconds.count(); - cout/*<<"TOTAL TIME : "*/<