Skip to content

Commit

Permalink
Dirty,normalize and long numbers in polyratfun
Browse files Browse the repository at this point in the history
  • Loading branch information
vermaseren committed Jul 9, 2015
1 parent 1470321 commit 4cec87d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions sources/proces.c
Original file line number Diff line number Diff line change
Expand Up @@ -4733,7 +4733,8 @@ WORD PrepPoly(PHEAD WORD *term)
v = m;
*v++ = AR.PolyFun;
*v++ = FUNHEAD + 2*(ARGHEAD+sizenum+sizeden+2);
FILLFUN(v);
*v++ = CLEANPRF;
FILLFUN3(v);
*v++ = ARGHEAD+2*sizenum+2;
*v++ = 0;
FILLARG(v);
Expand All @@ -4757,7 +4758,9 @@ WORD PrepPoly(PHEAD WORD *term)
{
WORD oldtype = AR.SortType;
AR.SortType = SORTHIGHFIRST;
/* poly_ratfun_normalize(BHEAD term); */
if ( count > 0 )
poly_ratfun_normalize(BHEAD term);
else
ReadPolyRatFun(BHEAD term);
AR.SortType = oldtype;
}
Expand Down
2 changes: 1 addition & 1 deletion sources/ratio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2644,7 +2644,7 @@ void GCDclean(PHEAD WORD *num, WORD *den)
MUNLOCK(ErrorMessageLock);
Terminate(-1);
}
UnPack((UWORD *)r1,csize3,&csize1,&csize2);
UnPack((UWORD *)r1,csize3,&csize2,&csize1);
t2 = r1+ABS(csize3);
for ( i = 0; i < csize2; i++ ) r2[i] = t2[i];
r2 += csize2; *r2++ = 1;
Expand Down

0 comments on commit 4cec87d

Please sign in to comment.