summaryrefslogtreecommitdiffstats
path: root/mpi
diff options
context:
space:
mode:
Diffstat (limited to 'mpi')
-rw-r--r--mpi/mpi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/mpi/mpi.h b/mpi/mpi.h
index cd7e823d..aac49019 100644
--- a/mpi/mpi.h
+++ b/mpi/mpi.h
@@ -85,6 +85,11 @@ void mp_set_prec(unsigned int prec);
/* Memory management */
mp_err mp_init(mp_int *mp);
+INLINE mp_err mp_init_minimal(mp_int *mp)
+{
+ DIGITS(mp) = 0;
+ return MP_OKAY;
+}
mp_err mp_init_array(mp_int mp[], int count);
mp_err mp_init_size(mp_int *mp, mp_size prec);
mp_err mp_init_copy(mp_int *mp, mp_int *from);