diff options
author | Jack Lloyd <[email protected]> | 2015-11-23 17:06:04 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-11-23 17:06:04 -0500 |
commit | 30d7e4df88a2ef6333fb6ee17bb0425ac3cba220 (patch) | |
tree | c3deb013d30b21c096d5050c727b52d981eb35f1 /src/lib/math/mp | |
parent | befda7b4155f4b4889cff24fc1b664af3473130f (diff) |
Remove bogus code from generic mp_madd header, noticed on PPC build.
Also fix a few cast and zero-as-nullptr warnings in the AltiVec header
Diffstat (limited to 'src/lib/math/mp')
-rw-r--r-- | src/lib/math/mp/mp_generic/mp_madd.h | 7 |
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 |