aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math/mp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/math/mp')
-rw-r--r--src/lib/math/mp/mp_generic/mp_madd.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/math/mp/mp_generic/mp_madd.h b/src/lib/math/mp/mp_generic/mp_madd.h
index 3b0487356..95a1069a4 100644
--- a/src/lib/math/mp/mp_generic/mp_madd.h
+++ b/src/lib/math/mp/mp_generic/mp_madd.h
@@ -10,6 +10,7 @@
#define BOTAN_MP_WORD_MULADD_H__
#include <botan/mp_types.h>
+#include <botan/mul128.h>
namespace Botan {
@@ -23,13 +24,13 @@ namespace Botan {
typedef u64bit dword;
#define BOTAN_HAS_MP_DWORD
#elif (BOTAN_MP_WORD_BITS == 64)
-
- #include <botan/mul128.h>
-
#if defined(BOTAN_TARGET_HAS_NATIVE_UINT128)
typedef uint128_t dword;
#define BOTAN_HAS_MP_DWORD
+ #else
+ // No native 128 bit integer type; use mul64x64_128 instead
#endif
+
#else
#error BOTAN_MP_WORD_BITS must be 8, 16, 32, or 64
#endif