mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-12 08:11:05 +00:00
Use Microsoft x86-beased defined for __emulu
This commit is contained in:
parent
619f9790df
commit
5ccbd9af6a
@ -233,7 +233,7 @@ static word AtomicInverseModPower2(word A)
|
||||
#define GetBorrow(u) u##1
|
||||
#else
|
||||
#define Declare2Words(x) dword x;
|
||||
#if _MSC_VER >= 1400 && !defined(__INTEL_COMPILER) && !(defined(_M_ARM) || defined(_M_ARM64))
|
||||
#if _MSC_VER >= 1400 && !defined(__INTEL_COMPILER) && (defined(_M_X86) || defined(_M_X64) || defined(_M_IA64))
|
||||
#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
@ -435,7 +435,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) && !(defined(_M_ARM) || defined(_M_ARM64))
|
||||
#if _MSC_VER >= 1400 && !defined(__INTEL_COMPILER) && (defined(_M_X86) || defined(_M_X64) || defined(_M_IA64))
|
||||
#define MUL32(a, b) __emulu(word32(a), word32(b))
|
||||
#else
|
||||
#define MUL32(a, b) ((word64)((word32)(a)) * (word32)(b))
|
||||
|
Loading…
x
Reference in New Issue
Block a user