Changeset d4cec6a in git for libpolys/polys/shiftop.cc


Ignore:
Timestamp:
Jul 23, 2019, 11:31:27 AM (5 years ago)
Author:
Karim Abou Zeid <karim23697@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
7161acac8387482214ebcdd85e77266519f0cad2
Parents:
d906dc5d406b00b056fb825f5c5c8988ebcaceb3628fc3d0ec524cd36ca82c3a6275c0dcf5d73c83
Message:
Merge branch 'spielwiese' into stable
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/shiftop.cc

    r628fc3d rd4cec6a  
    1313 * -> wait until the new interface is released
    1414*/
    15 #define SHIFT_MULT_COMPAT_MODE
     15/* #define SHIFT_MULT_COMPAT_MODE */
    1616
    1717#ifdef SHIFT_MULT_DEBUG
     
    718718BOOLEAN _p_LPLmDivisibleByNoComp(poly a, poly b, const ring r)
    719719{
    720   if(p_LmIsConstantComp(a, r))
    721     return TRUE;
    722720#ifdef SHIFT_MULT_COMPAT_MODE
    723721  a = p_Head(a, r);
     
    726724  p_mLPunshift(b, r);
    727725#endif
    728   int i = (r->N / r->isLPring) - p_LastVblock(a, r);
    729   do {
    730     int j = r->N - (i * r->isLPring);
     726  for (int i = (r->N / r->isLPring) - p_LastVblock(a, r); i >= 0; i--)
     727  {
    731728    bool divisible = true;
    732     do
     729    for (int j = r->N - (i * r->isLPring); j >= 0; j--)
    733730    {
    734731      if (p_GetExp(a, j, r) > p_GetExp(b, j + (i * r->isLPring), r))
     
    737734        break;
    738735      }
    739       j--;
    740     }
    741     while (j);
     736    }
    742737    if (divisible) return TRUE;
    743     i--;
    744   }
    745   while (i > -1);
     738  }
    746739#ifdef SHIFT_MULT_COMPAT_MODE
    747740  p_Delete(&a, r);
Note: See TracChangeset for help on using the changeset viewer.