~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
310f5b7
)
Set flags on results correctly.
author
mdw
<mdw>
Fri, 19 Nov 1999 13:19:06 +0000
(13:19 +0000)
committer
mdw
<mdw>
Fri, 19 Nov 1999 13:19:06 +0000
(13:19 +0000)
mp-io.c
patch
|
blob
|
blame
|
history
diff --git
a/mp-io.c
b/mp-io.c
index
0aa2bca
..
1592269
100644
(file)
--- a/
mp-io.c
+++ b/
mp-io.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: mp-io.c,v 1.
1 1999/11/17 18:02:1
6 mdw Exp $
+ * $Id: mp-io.c,v 1.
2 1999/11/19 13:19:0
6 mdw Exp $
*
* Loading and storing of multiprecision integers
*
*
* Loading and storing of multiprecision integers
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: mp-io.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: mp-io.c,v $
+ * Revision 1.2 1999/11/19 13:19:06 mdw
+ * Set flags on results correctly.
+ *
* Revision 1.1 1999/11/17 18:02:16 mdw
* New multiprecision integer arithmetic suite.
*
* Revision 1.1 1999/11/17 18:02:16 mdw
* New multiprecision integer arithmetic suite.
*
@@
-76,6
+79,7
@@
mp *mp_loadl(mp *d, const void *pv, size_t sz)
{
MP_MODIFY(d, MPW_RQ(sz));
mpx_loadl(d->v, d->vl, pv, sz);
{
MP_MODIFY(d, MPW_RQ(sz));
mpx_loadl(d->v, d->vl, pv, sz);
+ d->f &= ~(MP_UNDEF | MP_NEG);
mp_shrink(d);
return (d);
}
mp_shrink(d);
return (d);
}
@@
-120,6
+124,7
@@
mp *mp_loadb(mp *d, const void *pv, size_t sz)
{
MP_MODIFY(d, MPW_RQ(sz));
mpx_loadb(d->v, d->vl, pv, sz);
{
MP_MODIFY(d, MPW_RQ(sz));
mpx_loadb(d->v, d->vl, pv, sz);
+ d->f &= ~(MP_UNDEF | MP_NEG);
mp_shrink(d);
return (d);
}
mp_shrink(d);
return (d);
}