diff options
Diffstat (limited to 'integer.cpp')
-rw-r--r-- | integer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/integer.cpp b/integer.cpp index e8c2249..be5f416 100644 --- a/integer.cpp +++ b/integer.cpp @@ -187,6 +187,8 @@ public: DWord r; #ifdef CRYPTOPP_NATIVE_DWORD_AVAILABLE r.m_whole = (dword)a * b; + #elif defined(__x86_64__) + asm ("mulq %3" : "=a"(r.m_halfs.low), "=d"(r.m_halfs.high) : "a"(a), "g"(b) : "cc"); #else r.m_halfs.low = _umul128(a, b, &r.m_halfs.high); #endif |