X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/5fb41c9acb1c367fbcc1a43f410d8e85eacbcfef..d7ccdf4277c5abed2330432a7f455f2cac913f37:/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 d1a5de4..c3d6578 100644 --- a/IDA_new/ida_gf65_paper3.cpp +++ b/IDA_new/ida_gf65_paper3.cpp @@ -412,6 +412,9 @@ void saveFile8(mylong *data, const char *fileName,long size_file) { } +#define cli() __asm volatile( "cli" ::: "memory" ) +#define sei() __asm volatile( "sei" ::: "memory" ) + int main(int argc, char **argv) { @@ -630,8 +633,11 @@ int main(int argc, char **argv) // sleep(2); start = std::chrono::system_clock::now(); for(int i=0;i<1000;i++) { - int volatile tt=t; - matS2=matrix_multiply(&gf, matInvGs, matCs, tt, tt, tt, len, w); + float tt=i; + tt=t; + int tt2=tt; + matS2=matrix_multiply(&gf, matInvGs, matCs, tt2, tt2, tt2, len, w); + sei(); } end = std::chrono::system_clock::now(); elapsed_seconds = end-start;