summaryrefslogtreecommitdiff
path: root/lib/freebl/mpi
diff options
context:
space:
mode:
authorFranziskus Kiefer <franziskuskiefer@gmail.com>2017-02-14 12:51:46 +0100
committerFranziskus Kiefer <franziskuskiefer@gmail.com>2017-02-14 12:51:46 +0100
commit0a370c818ffc66ed4aaad5d8ca791c5aa144f7f1 (patch)
tree60a8da95c96f734761ae6fe72db3f2850bef99be /lib/freebl/mpi
parent29c7fce24dbe34ea8e3dc0712bd494682fb9b387 (diff)
downloadnss-hg-0a370c818ffc66ed4aaad5d8ca791c5aa144f7f1.tar.gz
Bug 1339442 - remove MP_NUMTH, r=ttaubert
Differential Revision: https://nss-review.dev.mozaws.net/D212
Diffstat (limited to 'lib/freebl/mpi')
-rw-r--r--lib/freebl/mpi/README3
-rw-r--r--lib/freebl/mpi/mpi-config.h4
-rw-r--r--lib/freebl/mpi/mpi.c2
-rw-r--r--lib/freebl/mpi/mpi.h2
4 files changed, 0 insertions, 11 deletions
diff --git a/lib/freebl/mpi/README b/lib/freebl/mpi/README
index 475549bad..f1c66dff1 100644
--- a/lib/freebl/mpi/README
+++ b/lib/freebl/mpi/README
@@ -503,9 +503,6 @@ MP_MODARITH - Define true to include the modular arithmetic
in your application, you can set this to zero to
leave out all the modular routines.
-MP_NUMTH - Define true to include number theoretic functions
- such as mp_gcd(), mp_lcm(), and mp_invmod().
-
MP_LOGTAB - If true, the file "logtab.h" is included, which
is basically a static table of base 2 logarithms.
These are used to compute how big the buffers for
diff --git a/lib/freebl/mpi/mpi-config.h b/lib/freebl/mpi/mpi-config.h
index f365592a4..c6f72b206 100644
--- a/lib/freebl/mpi/mpi-config.h
+++ b/lib/freebl/mpi/mpi-config.h
@@ -24,10 +24,6 @@
#define MP_MODARITH 1 /* include modular arithmetic ? */
#endif
-#ifndef MP_NUMTH
-#define MP_NUMTH 1 /* include number theoretic functions? */
-#endif
-
#ifndef MP_LOGTAB
#define MP_LOGTAB 1 /* use table of logs instead of log()? */
#endif
diff --git a/lib/freebl/mpi/mpi.c b/lib/freebl/mpi/mpi.c
index f6f75439c..e4b26453f 100644
--- a/lib/freebl/mpi/mpi.c
+++ b/lib/freebl/mpi/mpi.c
@@ -1695,7 +1695,6 @@ mp_iseven(const mp_int *a)
/*------------------------------------------------------------------------*/
/* {{{ Number theoretic functions */
-#if MP_NUMTH
/* {{{ mp_gcd(a, b, c) */
/*
@@ -2376,7 +2375,6 @@ mp_invmod(const mp_int *a, const mp_int *m, mp_int *c)
} /* end mp_invmod() */
/* }}} */
-#endif /* if MP_NUMTH */
/* }}} */
diff --git a/lib/freebl/mpi/mpi.h b/lib/freebl/mpi/mpi.h
index 64ffe75d5..97af0f069 100644
--- a/lib/freebl/mpi/mpi.h
+++ b/lib/freebl/mpi/mpi.h
@@ -225,13 +225,11 @@ int mp_isodd(const mp_int *a);
int mp_iseven(const mp_int *a);
/* Number theoretic */
-#if MP_NUMTH
mp_err mp_gcd(mp_int *a, mp_int *b, mp_int *c);
mp_err mp_lcm(mp_int *a, mp_int *b, mp_int *c);
mp_err mp_xgcd(const mp_int *a, const mp_int *b, mp_int *g, mp_int *x, mp_int *y);
mp_err mp_invmod(const mp_int *a, const mp_int *m, mp_int *c);
mp_err mp_invmod_xgcd(const mp_int *a, const mp_int *m, mp_int *c);
-#endif /* end MP_NUMTH */
/* Input and output */
#if MP_IOFUNC