mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-26 19:30:21 +00:00
Merge pull request #84 from m-deckel/visualstudio-arm
Microsoft ARM support
This commit is contained in:
commit
be67acdb1d
2
config.h
2
config.h
@ -414,7 +414,7 @@ NAMESPACE_END
|
||||
#define CRYPTOPP_X64_ASM_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if !defined(CRYPTOPP_DISABLE_SSE2) && (defined(CRYPTOPP_MSVC6PP_OR_LATER) || defined(__SSE2__))
|
||||
#if !defined(CRYPTOPP_DISABLE_SSE2) && (defined(CRYPTOPP_MSVC6PP_OR_LATER) || defined(__SSE2__)) && !defined(_M_ARM)
|
||||
#define CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE 1
|
||||
#else
|
||||
#define CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE 0
|
||||
|
@ -32,7 +32,7 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#if _MSC_VER >= 1400
|
||||
#if (_MSC_VER >= 1400) && !defined(_M_ARM)
|
||||
#include <intrin.h>
|
||||
#endif
|
||||
|
||||
@ -186,7 +186,7 @@ static word AtomicInverseModPower2(word A)
|
||||
#define GetBorrow(u) u##1
|
||||
#else
|
||||
#define Declare2Words(x) dword x;
|
||||
#if _MSC_VER >= 1400 && !defined(__INTEL_COMPILER)
|
||||
#if _MSC_VER >= 1400 && !defined(__INTEL_COMPILER) && !defined(_M_ARM)
|
||||
#define MultiplyWords(p, a, b) p = __emulu(a, b);
|
||||
#else
|
||||
#define MultiplyWords(p, a, b) p = (dword)a*b;
|
||||
|
2
vmac.cpp
2
vmac.cpp
@ -472,7 +472,7 @@ VMAC_Base::VHASH_Update_SSE2(const word64 *data, size_t blocksRemainingInWord64,
|
||||
#define AccumulateNH(a, b, c) a += word128(b)*(c)
|
||||
#define Multiply128(r, i1, i2) r = word128(word64(i1)) * word64(i2)
|
||||
#else
|
||||
#if _MSC_VER >= 1400 && !defined(__INTEL_COMPILER)
|
||||
#if _MSC_VER >= 1400 && !defined(__INTEL_COMPILER) && !defined(_M_ARM)
|
||||
#define MUL32(a, b) __emulu(word32(a), word32(b))
|
||||
#else
|
||||
#define MUL32(a, b) ((word64)((word32)(a)) * (word32)(b))
|
||||
|
Loading…
Reference in New Issue
Block a user