Disable global optimizations for Rijndael using MSC compiler (GH #649)

pull/737/head
Jeffrey Walton 2018-11-05 23:45:59 -05:00
parent 5a36cd54bd
commit f57df06c5e
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 8 additions and 0 deletions

View File

@ -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