From b4c59752c1ffd6e7217573e9a290276d92bd6235 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 13 Aug 2015 21:53:37 +0200 Subject: Remove 'extern "C"' from src/lib/math/mp C functions must not throw but Botan::bigint_divop throws (MSVC: warning C4297: 'Botan::bigint_divop' : function assumed not to throw an exception but does) * Move bigint_mul -> Botan::bigint_sqr * Move bigint_sqr -> Botan::bigint_sqr * Variable in unnamed namespace supersedes "static" keyword --- src/lib/math/mp/mp_core.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/lib/math/mp/mp_core.h') diff --git a/src/lib/math/mp/mp_core.h b/src/lib/math/mp/mp_core.h index 06f1d4a2d..b97384d18 100644 --- a/src/lib/math/mp/mp_core.h +++ b/src/lib/math/mp/mp_core.h @@ -18,8 +18,6 @@ namespace Botan { */ const size_t MP_WORD_BITS = BOTAN_MP_WORD_BITS; -extern "C" { - /** * Two operand addition * @param x the first operand (and output) @@ -160,8 +158,6 @@ void bigint_comba_sqr8(word out[16], const word in[8]); void bigint_comba_sqr9(word out[18], const word in[9]); void bigint_comba_sqr16(word out[32], const word in[16]); -} - /* * High Level Multiplication/Squaring Interfaces */ -- cgit v1.2.3