Changeset 6adc9e in git for Singular


Ignore:
Timestamp:
Mar 2, 2020, 1:59:11 PM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
cb06ace2199aca68931c89e6c242ddd8d0495182
Parents:
0762d1992787f92d68136edec0cb298d13afc382
Message:
use of attrib "maxExp" by ringlist: only, if needed
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r0762d19 r6adc9e  
    44984498  lists l=(lists)v->Data();
    44994499  long mm=(long)atGet(v,"maxExp",INT_CMD);
    4500   if (mm==0) mm=0x7fff;
    45014500  int isLetterplace=(int)(long)atGet(v,"isLetterplaceRing",INT_CMD);
    45024501  ring r=rCompose(l,TRUE,mm,isLetterplace);
     
    48434842    if (res->data!=NULL)
    48444843    {
    4845       long mm=r->bitmask;
    4846       if (mm>MAX_INT_VAL) mm=MAX_INT_VAL;
    4847       atSet(res,omStrDup("maxExp"),(void*)mm,INT_CMD);
     4844      long mm=r->wanted_maxExp;
     4845      if (mm!=0) atSet(res,omStrDup("maxExp"),(void*)mm,INT_CMD);
    48484846      return FALSE;
    48494847    }
  • Singular/ipshell.cc

    r0762d19 r6adc9e  
    27832783    return TRUE;
    27842784  }
    2785   if (bitmask!=0) R->bitmask=bitmask;
     2785  if (bitmask!=0) { R->bitmask=bitmask; R->wanted_maxExp=bitmask; }
    27862786  return FALSE;
    27872787}
     
    29342934  }
    29352935  #endif
    2936   if (bitmask!=0x7fff) R->bitmask=bitmask;
     2936  if ((bitmask!=0)&&(R->wanted_maxExp==0)) R->wanted_maxExp=bitmask;
    29372937  rComplete(R);
    29382938
     
    53095309    else if ((*iv)[1]==ringorder_L)
    53105310    {
    5311       R->bitmask=(*iv)[2]*2+1;
     5311      R->wanted_maxExp=(*iv)[2]*2+1;
    53125312      n--;
    53135313    }
Note: See TracChangeset for help on using the changeset viewer.