aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorlloyd <[email protected]>2015-01-27 00:12:03 +0000
committerlloyd <[email protected]>2015-01-27 00:12:03 +0000
commit05b7fbf51d6a0b5814456e17a7fa7261a5754f6c (patch)
tree77072efb1acd489bed99ffd76b1a542bfda7afa0 /src/lib
parentcdd1033d64d77167338771630a0ea3dc8dfbc813 (diff)
Don't define overloads if there is no native uint128_t. Github 47
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/utils/donna128.h2
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
}