diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-10-18 11:44:23 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-10-18 11:44:23 -0400 |
commit | 59bfcd5454edb9206c6e781a1e0bbcc3b0a0b138 (patch) | |
tree | 06eda0ea5992e48f33a402449bebfdecbc5b31b5 /donna_64.h | |
parent | f5fd48ef73d11bee6d1687852ac1bba5555d65e3 (diff) | |
download | cryptopp-git-59bfcd5454edb9206c6e781a1e0bbcc3b0a0b138.tar.gz |
Guard x86_64 code path
Diffstat (limited to 'donna_64.h')
-rw-r--r-- | donna_64.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -64,7 +64,7 @@ struct word128 { word64 lo, hi; }; # define lo128(a) (a.lo)
# define hi128(a) (a.hi)
-#elif defined(__GNUC__)
+#elif defined(__GNUC__) && (defined(__amd64__) || defined(__x86_64__))
struct word128 { word64 lo, hi; };
# define mul64x64_128(out,a,b) __asm__ ("mulq %3" : "=a" (out.lo), "=d" (out.hi) : "a" (a), "rm" (b));
# define shr128_pair(out,hi,lo,shift) __asm__ ("shrdq %2,%1,%0" : "+r" (lo) : "r" (hi), "J" (shift)); out = lo;
|