X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/bb1f791ce80683443b326e62ae32c255bcff1010..f225228275940ffb8cd10ee63028c0063b3e1810:/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 0197e43..2df3c0d 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,7 +633,9 @@ int main(int argc, char **argv) // sleep(2); start = std::chrono::system_clock::now(); for(int i=0;i<1000;i++) { + cli(); matS2=matrix_multiply(&gf, matInvGs, matCs, t, t, t, len, w); + sei(); } end = std::chrono::system_clock::now(); elapsed_seconds = end-start;