X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/106cac666097f4dfa0470daf01ebcae0872083e2..e276f56dbd21fca9b743bc6c8b28ead5516c9cc9:/IDA_new/ida_gf65_paper3.cpp?ds=inline diff --git a/IDA_new/ida_gf65_paper3.cpp b/IDA_new/ida_gf65_paper3.cpp index 74495b7..4c9760b 100644 --- a/IDA_new/ida_gf65_paper3.cpp +++ b/IDA_new/ida_gf65_paper3.cpp @@ -61,7 +61,7 @@ void display(mylong *mat, int r, int c) { 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; + int i, j, k; product = (mylong *) malloc(sizeof(mylong)*r1*c2); for (i = 0; i < r1*c2; i++) product[i] = 0; @@ -505,8 +505,9 @@ int main(int argc, char **argv) */ // sleep(2); + float toto=0.001; auto start = std::chrono::system_clock::now(); - matC=matrix_multiply(&gf, matG, matS, n, t, t, len, w,0); + matC=matrix_multiply(&gf, matG, matS, n, t, t, len, w,&toto); auto end = std::chrono::system_clock::now(); std::chrono::duration elapsed_seconds = end-start; total_time+=elapsed_seconds.count(); @@ -631,10 +632,10 @@ int main(int argc, char **argv) // sleep(2); start = std::chrono::system_clock::now(); - float toto=0.001; + toto=0.001; for(int i=0;i<1000;i++) { - matS2=matrix_multiply(&gf, matInvGs, matCs, t, t, t, len, w, toto); + matS2=matrix_multiply(&gf, matInvGs, matCs, t, t, t, len, w, &toto); } end = std::chrono::system_clock::now();