Clear warning C4163: '_umul128' : not available as an intrinsic function
parent
91e5844625
commit
4f64bb8eb3
10
donna_64.cpp
10
donna_64.cpp
|
|
@ -13,17 +13,17 @@
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "cpu.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)
|
#if defined(_MSC_VER)
|
||||||
# include <intrin.h>
|
# include <intrin.h>
|
||||||
# pragma intrinsic(_umul128)
|
# pragma intrinsic(_umul128)
|
||||||
# pragma intrinsic(__shiftright128)
|
# pragma intrinsic(__shiftright128)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Squash MS LNK4221 and libtool warnings
|
|
||||||
extern const char DONNA64_FNAME[] = __FILE__;
|
|
||||||
|
|
||||||
#if defined(CRYPTOPP_CURVE25519_64BIT)
|
|
||||||
|
|
||||||
ANONYMOUS_NAMESPACE_BEGIN
|
ANONYMOUS_NAMESPACE_BEGIN
|
||||||
|
|
||||||
using std::memcpy;
|
using std::memcpy;
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,8 @@ NAMESPACE_BEGIN(Test)
|
||||||
bool ValidateAll(bool thorough)
|
bool ValidateAll(bool thorough)
|
||||||
{
|
{
|
||||||
bool pass=TestSettings();
|
bool pass=TestSettings();
|
||||||
|
pass=TestCurve25519() && pass;
|
||||||
|
pass=ValidateX25519() && pass;
|
||||||
pass=TestOS_RNG() && pass;
|
pass=TestOS_RNG() && pass;
|
||||||
pass=TestRandomPool() && pass;
|
pass=TestRandomPool() && pass;
|
||||||
#if !defined(NO_OS_DEPENDENCE) && defined(OS_RNG_AVAILABLE)
|
#if !defined(NO_OS_DEPENDENCE) && defined(OS_RNG_AVAILABLE)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue