Skip to content

Commit

Permalink
Disable global optimizations for Rijndael using MSC compiler (GH #649)
Browse files Browse the repository at this point in the history
  • Loading branch information
noloader committed Nov 6, 2018
1 parent 5a36cd5 commit f57df06
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rijndael.cpp
Expand Up @@ -88,6 +88,14 @@ being unloaded from L1 cache, until that round is finished.
#include "misc.h"
#include "cpu.h"

// MSVC bug, still don't know how to fix it. TODO, figure out
// when we can re-enable optimizations for MSVC. Also see
// https://github.com/weidai11/cryptopp/issues/649
#if defined(_MSC_VER) && (_MSC_VER >= 1910)
# pragma optimize("", off)
# pragma optimize("ts", on)
#endif

NAMESPACE_BEGIN(CryptoPP)

// Hack for http://github.com/weidai11/cryptopp/issues/42 and http://github.com/weidai11/cryptopp/issues/132
Expand Down

0 comments on commit f57df06

Please sign in to comment.