Use Microsoft x86-beased defined for __emulu

This commit is contained in:
Jeffrey Walton 2019-01-04 10:29:24 -05:00
parent 619f9790df
commit 5ccbd9af6a
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 2 additions and 2 deletions

View File

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

View File

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