X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/8646ee380d050f1e1deef1f241da272d7f227348..02dfbd5b7af7816959dbd39c1fe628451204e35f:/mpint.h diff --git a/mpint.h b/mpint.h index ed614a8..23378cd 100644 --- a/mpint.h +++ b/mpint.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: mpint.h,v 1.5 2002/01/13 19:23:16 mdw Exp $ + * $Id$ * * Conversion between MPs and standard C integers * @@ -27,28 +27,6 @@ * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: mpint.h,v $ - * Revision 1.5 2002/01/13 19:23:16 mdw - * Fix division-by-zero bug translating @MPW_MAX@ to an @mp@. - * - * Revision 1.4 2000/10/08 12:04:01 mdw - * Remove spurious semicolon. - * - * 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 @@ -158,7 +136,7 @@ _v++; \ _max /= (mpd)MPW_MAX + 1; \ } \ - if (!(_m->f & MP_NEG)) \ + if (!MP_NEGP(_m)) \ _i = -_i; \ (i) = _i; \ } while (0)