Changeset 764c0f in git for libpolys/polys/monomials/p_polys.cc
- Timestamp:
- Feb 17, 2021, 9:41:19 PM (3 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 4470c0e32fbd88486ac477ef7c9a7a70bf64e46e
- Parents:
- d58ff1053b36c1f89b1558cad550aa1f4b0f1463
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/p_polys.cc
rd58ff10 r764c0f 2639 2639 } 2640 2640 number d=p_InitContent(ph,r); 2641 number h=d; 2641 2642 if (n_Size(d,r->cf)<=smax) 2642 2643 { 2644 n_Delete(&h,r->cf); 2643 2645 //if (TEST_OPT_PROT) PrintS("G"); 2644 2646 return; … … 2646 2648 2647 2649 poly p=ph; 2648 number h=d;2649 2650 if (smax==1) smax=2; 2650 2651 while (p!=NULL) 2651 2652 { 2652 #if 02653 d=n_ Gcd(h,pGetCoeff(p),r->cf);2653 #if 1 2654 d=n_SubringGcd(h,pGetCoeff(p),r->cf); 2654 2655 n_Delete(&h,r->cf); 2655 2656 h = d; 2656 2657 #else 2657 STATISTIC(n_Gcd); nlInpGcd(h,pGetCoeff(p),r->cf);2658 n_InpGcd(h,pGetCoeff(p),r->cf); 2658 2659 #endif 2659 2660 if(n_Size(h,r->cf)<smax) 2660 2661 { 2661 2662 //if (TEST_OPT_PROT) PrintS("g"); 2663 n_Delete(&h,r->cf); 2662 2664 return; 2663 2665 } … … 2666 2668 p = ph; 2667 2669 if (!n_GreaterZero(pGetCoeff(p),r->cf)) h=n_InpNeg(h,r->cf); 2668 if(n_IsOne(h,r->cf)) return; 2670 if(n_IsOne(h,r->cf)) 2671 { 2672 n_Delete(&h,r->cf); 2673 return; 2674 } 2669 2675 if (TEST_OPT_PROT) PrintS("c"); 2670 2676 while (p!=NULL)
Note: See TracChangeset
for help on using the changeset viewer.