projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reworking for new prime-search system. Add function for working out how
[u/mdw/catacomb]
/
mptext.c
diff --git
a/mptext.c
b/mptext.c
index
2894be4
..
b216fea
100644
(file)
--- a/
mptext.c
+++ b/
mptext.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: mptext.c,v 1.
2 1999/11/20 22:24:15
mdw Exp $
+ * $Id: mptext.c,v 1.
3 1999/12/10 23:23:26
mdw Exp $
*
* Textual representation of multiprecision numbers
*
*
* Textual representation of multiprecision numbers
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: mptext.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: mptext.c,v $
+ * Revision 1.3 1999/12/10 23:23:26 mdw
+ * Allocate slightly less memory.
+ *
* Revision 1.2 1999/11/20 22:24:15 mdw
* Use function versions of MPX_UMULN and MPX_UADDN.
*
* Revision 1.2 1999/11/20 22:24:15 mdw
* Use function versions of MPX_UMULN and MPX_UADDN.
*
@@
-88,7
+91,7
@@
mp *mp_read(mp *m, int radix, const mptext_ops *ops, void *p)
/* --- Initialize the destination number --- */
/* --- Initialize the destination number --- */
- MP_MODIFY(m,
16
);
+ MP_MODIFY(m,
4
);
m->vl = m->v;
m->f &= ~MP_UNDEF;
m->vl = m->v;
m->f &= ~MP_UNDEF;
@@
-296,6
+299,7
@@
static int verify(dstr *v)
}
dstr_destroy(&d);
}
dstr_destroy(&d);
+ assert(mparena_count(MPARENA_GLOBAL) == 0);
return (ok);
}
return (ok);
}