aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math/mp/mp_core.h
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-08-13 21:53:37 +0200
committerSimon Warta <[email protected]>2015-08-14 19:01:07 +0200
commitb4c59752c1ffd6e7217573e9a290276d92bd6235 (patch)
tree4e5f99989cfbc3999d7f84607804f0a82e72804f /src/lib/math/mp/mp_core.h
parentb9c0077022400abc38d33ca3dfcfe32b9cf503e3 (diff)
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
Diffstat (limited to 'src/lib/math/mp/mp_core.h')
-rw-r--r--src/lib/math/mp/mp_core.h4
1 files changed, 0 insertions, 4 deletions
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
*/