X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/a790733d08340a9fdb017b93bdbab4e971faa8a4..24e1e862d1cf06eb08af7c44468c1d12fcffc747:/mp.h diff --git a/mp.h b/mp.h index 6f8959a..13bcd3d 100644 --- a/mp.h +++ b/mp.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: mp.h,v 1.3 1999/11/19 13:19:14 mdw Exp $ + * $Id: mp.h,v 1.4 1999/11/21 22:13:02 mdw Exp $ * * Simple multiprecision arithmetic * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: mp.h,v $ + * Revision 1.4 1999/11/21 22:13:02 mdw + * Add mp version of MPX_BITS. + * * Revision 1.3 1999/11/19 13:19:14 mdw * Fix const annotation. * @@ -424,7 +427,19 @@ extern void mp_scan(mpscan */*sc*/, const mp */*m*/); * integer. */ -extern size_t mp_octets(const mp *m); +extern size_t mp_octets(const mp */*m*/); + +/* --- @mp_bits@ --- * + * + * Arguments: @const mp *m@ = a multiprecision integer + * + * Returns: The number of bits required to represent @m@. + * + * Use: Calculates the external storage required for a multiprecision + * integer. + */ + +extern unsigned long mp_bits(const mp */*m*/); /* --- @mp_loadl@ --- * *