Clear warning C4163: '_umul128' : not available as an intrinsic function

This commit is contained in:
Jeffrey Walton 2018-12-14 12:23:18 -05:00
parent 91e5844625
commit 4f64bb8eb3
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 7 additions and 5 deletions

View File

@ -13,17 +13,17 @@
#include "misc.h"
#include "cpu.h"
// Squash MS LNK4221 and libtool warnings
extern const char DONNA64_FNAME[] = __FILE__;
#if defined(CRYPTOPP_CURVE25519_64BIT)
#if defined(_MSC_VER)
# include <intrin.h>
# pragma intrinsic(_umul128)
# pragma intrinsic(__shiftright128)
#endif
// Squash MS LNK4221 and libtool warnings
extern const char DONNA64_FNAME[] = __FILE__;
#if defined(CRYPTOPP_CURVE25519_64BIT)
ANONYMOUS_NAMESPACE_BEGIN
using std::memcpy;

View File

@ -41,6 +41,8 @@ NAMESPACE_BEGIN(Test)
bool ValidateAll(bool thorough)
{
bool pass=TestSettings();
pass=TestCurve25519() && pass;
pass=ValidateX25519() && pass;
pass=TestOS_RNG() && pass;
pass=TestRandomPool() && pass;
#if !defined(NO_OS_DEPENDENCE) && defined(OS_RNG_AVAILABLE)