X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/d34decd2b2b88240cf4ca68a2a5feb7bf36de6e7..b817bfc642225b8c3c0b6a7e42d1fb949b61a606:/mpint.h diff --git a/mpint.h b/mpint.h index ba6de80..13df890 100644 --- a/mpint.h +++ b/mpint.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: mpint.h,v 1.3 2000/06/17 11:45:09 mdw Exp $ + * $Id: mpint.h,v 1.6 2004/04/08 01:36:15 mdw Exp $ * * Conversion between MPs and standard C integers * @@ -27,22 +27,6 @@ * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: mpint.h,v $ - * Revision 1.3 2000/06/17 11:45:09 mdw - * Major memory management overhaul. Added arena support. Use the secure - * arena for secret integers. Replace and improve the MP management macros - * (e.g., replace MP_MODIFY by MP_DEST). - * - * Revision 1.2 1999/12/10 23:22:53 mdw - * Support for uint32. - * - * Revision 1.1 1999/11/25 11:38:31 mdw - * Support for conversions between MPs and C integers. - * - */ - #ifndef CATACOMB_MPINT_H #define CATACOMB_MPINT_H @@ -110,7 +94,7 @@ * up all of my negative arithmetic. So do an explicit test here. \ */ \ \ - if (_i > -MPW_MAX) \ + if (_i >= -MPW_MAX) \ break; \ else \ _i /= (type)MPW_MAX + 1; \ @@ -196,7 +180,7 @@ mp_fromINT(ulong, unsigned long); */ #define mp_toINT(name, type) \ - extern type mp_to##name(const mp */*m*/); + extern type mp_to##name(const mp */*m*/) mp_toINT(short, short); mp_toINT(ushort, unsigned short);