projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename MP_IS* to MP_*P, for consistency's sake. Use these macros more often.
[u/mdw/catacomb]
/
mptext.c
diff --git
a/mptext.c
b/mptext.c
index
8130679
..
d528386
100644
(file)
--- a/
mptext.c
+++ b/
mptext.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id
: mptext.c,v 1.18 2004/04/08 01:36:15 mdw Exp
$
+ * $Id$
*
* Textual representation of multiprecision numbers
*
*
* Textual representation of multiprecision numbers
*
@@
-542,7
+542,7
@@
static int complicated(mp *m, int radix, mp **pr, unsigned i, unsigned z,
assert(i);
mp_div(&q, &m, m, pr[i]);
assert(i);
mp_div(&q, &m, m, pr[i]);
- if (
!MP_LEN
(q))
+ if (
MP_ZEROP
(q))
d = z;
else {
if (z > d)
d = z;
else {
if (z > d)
@@
-675,7
+675,7
@@
int mp_write(mp *m, int radix, const mptext_ops *ops, void *p)
/* --- If the number is negative, sort that out --- */
/* --- If the number is negative, sort that out --- */
- if (
m->f & MP_NEG
) {
+ if (
MP_NEGP(m)
) {
if (ops->put("-", 1, p))
return (EOF);
m->f &= ~MP_NEG;
if (ops->put("-", 1, p))
return (EOF);
m->f &= ~MP_NEG;