projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfcd749
)
Use mpextgcd, not mpbinv_w.
author
jbj
<devnull@localhost>
Fri, 23 May 2003 17:34:22 +0000
(17:34 +0000)
committer
jbj
<devnull@localhost>
Fri, 23 May 2003 17:34:22 +0000
(17:34 +0000)
CVS patchset: 6874
CVS date: 2003/05/23 17:34:22
python/rpmmpw-py.c
patch
|
blob
|
history
diff --git
a/python/rpmmpw-py.c
b/python/rpmmpw-py.c
index
291141a
..
3bf1912
100644
(file)
--- a/
python/rpmmpw-py.c
+++ b/
python/rpmmpw-py.c
@@
-1559,10
+1559,9
@@
fprintf(stderr, "sub ++: borrow\n");
mpgcd_w(xsize, xdata, mdata, MPW_DATA(z), wksp);
break;
case 'I':
- wksp = alloca(6*(msize+1)*sizeof(*wksp));
- mpbset(&b, msize, mdata);
+ wksp = alloca((7*msize+6)*sizeof(*wksp));
z = mpw_New(msize);
-
mpbinv_w(&b, xsize, xdata, MPW_DATA(z), wksp
);
+
(void) mpextgcd_w(msize, wksp, mdata, MPW_DATA(z), wksp+msize
);
break;
#ifdef DYING
case 'R':