diff options
author | lloyd <[email protected]> | 2015-01-27 00:12:03 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-01-27 00:12:03 +0000 |
commit | 05b7fbf51d6a0b5814456e17a7fa7261a5754f6c (patch) | |
tree | 77072efb1acd489bed99ffd76b1a542bfda7afa0 /src/lib/utils | |
parent | cdd1033d64d77167338771630a0ea3dc8dfbc813 (diff) |
Don't define overloads if there is no native uint128_t. Github 47
Diffstat (limited to 'src/lib/utils')
-rw-r--r-- | src/lib/utils/donna128.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/utils/donna128.h b/src/lib/utils/donna128.h index 037d9bdfe..c72ccb55c 100644 --- a/src/lib/utils/donna128.h +++ b/src/lib/utils/donna128.h @@ -111,6 +111,7 @@ inline u64bit combine_lower(const donna128 a, size_t s1, return z.lo(); } +#if defined(BOTAN_TARGET_HAS_NATIVE_UINT128) inline u64bit carry_shift(const uint128_t a, size_t shift) { return static_cast<u64bit>(a >> shift); @@ -121,6 +122,7 @@ inline u64bit combine_lower(const uint128_t a, size_t s1, { return static_cast<u64bit>((a >> s1) | (b << s2)); } +#endif } |