Changeset 3a961a in git


Ignore:
Timestamp:
Jul 5, 2018, 9:54:56 PM (6 years ago)
Author:
Karim Abou Zeid <karim23697@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
f6737053e8a61a659306021d5ac217163169d724
Parents:
c0632a415538219793d1d2b77ce38c37fcaf35f7
Message:
SHIFT_MULT_COMPAT_MODE is ready to be disabled now
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kspoly.cc

    rc0632a4 r3a961a  
    788788  if (tailRing->isLPring)
    789789  {
    790     int split = p_FirstVblock(p1, tailRing);
     790    // note: because of the crits, p2 is never shifted
     791    int split = p_mFirstVblock(p1, tailRing);
    791792    // TODO: shouldn't we use p1 AND p2 here??
    792793    k_SplitFrame(m1, m12, split, tailRing);
     
    795796    n_Delete(&(m1->coef), tailRing->cf);
    796797    n_Delete(&(m2->coef), tailRing->cf);
     798
     799    a1 = p_LPshift(p_Copy(a1, tailRing), 1 - split, tailRing); // unshift a1
    797800  }
    798801
     
    842845  if (tailRing->isLPring) {
    843846    // get m2*a2*m22 - m1*a1*m12
    844     Pair->Tail_Minus_mm_Mult_qq(m1, tailRing->p_Procs->pp_Mult_mm(a1, m12, tailRing), l1, spNoether);
     847    Pair->Tail_Minus_mm_Mult_qq(m1, tailRing->p_Procs->p_Mult_mm(a1, m12, tailRing), l1, spNoether); // a1 is a copy: safe to destroy
    845848  } else {
    846849    // get m2*a2 - m1*a1
  • libpolys/polys/shiftop.cc

    rc0632a4 r3a961a  
    9494  p_LPUnShift(p, ri);
    9595#else
    96   assume(p_mFirstVblock(_m, lV, ri) <= 1);
    97   assume(p_FirstVblock(p, lV, ri) <= 1); // TODO check that each block is <=1
     96  assume(p_mFirstVblock(_m, ri) <= 1);
     97  assume(p_FirstVblock(p, ri) <= 1); // TODO check that each block is <=1
    9898#endif
    9999  // at this point _m and p are shifted to 1
     
    154154  p_LPUnShift(p, ri);
    155155#else
    156   assume(p_mFirstVblock(_m, lV, ri) <= 1);
    157   assume(p_FirstVblock(p, lV, ri) <= 1); // TODO check that each block is <=1
     156  assume(p_mFirstVblock(_m, ri) <= 1);
     157  assume(p_FirstVblock(p, ri) <= 1); // TODO check that each block is <=1
    158158#endif
    159159  // at this point _m and p are shifted to 1
     
    217217  p_LPUnShift(p, ri);
    218218#else
    219   assume(p_mFirstVblock(_m, lV, ri) <= 1);
    220   assume(p_FirstVblock(p, lV, ri) <= 1); // TODO check that each block is <=1
     219  assume(p_mFirstVblock(_m, ri) <= 1);
     220  assume(p_FirstVblock(p, ri) <= 1); // TODO check that each block is <=1
    221221#endif
    222222  // at this point _m and p are shifted to 1
Note: See TracChangeset for help on using the changeset viewer.