Changeset cb72d2 in git


Ignore:
Timestamp:
Oct 10, 2018, 5:04:09 PM (6 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
f190196e27fa6d66bc5230d2587b99527ba5fa1e
Parents:
744abff418696fe730a23e8b601f9625084b50ca
Message:
fix: missing HAVE_SHIFTBBA and rIsLPRing test
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r744abf rcb72d2  
    22132213          c_par_names=currRing->cf->extRing->names;
    22142214        }
    2215         #ifdef HAVE_SHIFTBBA
    2216         if (r->isLPring==0)
    2217         #endif
     2215        if (!rIsLPRing(r))
    22182216        {
    22192217          maFindPerm(r->names,       r->N,       r_par_names, r_par,
     
    44404438  int isLetterplace=(int)(long)atGet(v,"isLetterplaceRing",INT_CMD);
    44414439  ring r=rCompose(l,TRUE,mm,isLetterplace);
     4440  #ifdef HAVE_SHIFTBBA
    44424441  if (isLetterplace)
    44434442  {
     
    44464445    r->isLPring=TRUE;
    44474446  }
     4447  #endif
    44484448  res->data=(char *)r;
    44494449  return (r==NULL);
     
    92909290    /* else, ALLOW_PLURAL */
    92919291  }
    9292   else if (currRing->isLPring)
     9292  #ifdef HAVE_SHIFTBBA
     9293  else if (rIsLPRing(currRing))
    92939294  {
    92949295    if ((p & ALLOW_LP)==0)
     
    92989299    }
    92999300  }
     9301  #endif
    93009302  #endif
    93019303#ifdef HAVE_RINGS
  • Singular/ipshell.cc

    r744abf rcb72d2  
    28952895
    28962896  if (!isLetterplace) rRenameVars(R);
     2897  #ifdef HAVE_SHIFTBBA
    28972898  else R->isLPring=isLetterplace;
     2899  #endif
    28982900  if (bitmask!=0x7fff) R->bitmask=bitmask*2;
    28992901  rComplete(R);
  • kernel/GBEngine/kutil.cc

    r744abf rcb72d2  
    78397839  Print("product criterion:%d chain criterion:%d\n",strat->cp,strat->c3);
    78407840  if (hilbcount!=0) Print("hilbert series criterion:%d\n",hilbcount);
     7841  #ifdef HAVE_SHIFTBBA
    78417842  /* in usual case strat->cv is 0, it gets changed only in shift routines */
    78427843  if (strat->cv!=0) Print("shift V criterion:%d\n",strat->cv);
    7843   /*mflush();*/
     7844  #endif
    78447845}
    78457846
     
    78527853  //Print("product criterion:%d chain criterion:%d\n",strat->cp,strat->c3);
    78537854  if (hilbcount!=0) Print("hilbert series criterion:%d\n",hilbcount);
     7855  #ifdef HAVE_SHIFTBBA
    78547856  /* in usual case strat->cv is 0, it gets changed only in shift routines */
    78557857  if (strat->cv!=0) Print("shift V criterion:%d\n",strat->cv);
    7856   /*mflush();*/
     7858  #endif
    78577859}
    78587860
  • libpolys/polys/monomials/ring.cc

    r744abf rcb72d2  
    417417#endif
    418418  }
    419   if (r->isLPring)
     419  if (rIsLPRing(r))
    420420  {
    421421    PrintS("\n// letterplace ring");
  • libpolys/polys/monomials/ring.h

    r744abf rcb72d2  
    397397static inline BOOLEAN rIsPluralRing(const ring r)
    398398{
    399   assume(r != NULL); assume(r->cf != NULL);
     399  assume(r != NULL);
    400400#ifdef HAVE_PLURAL
    401401  nc_struct *n;
     
    406406}
    407407
    408 static inline BOOLEAN rIsNCRing(const ring r)
    409 {
    410   assume(r != NULL); assume(r->cf != NULL);
    411 #ifdef HAVE_PLURAL
    412   return (r->isLPring!=0) || rIsPluralRing(r);
     408static inline BOOLEAN rIsLPRing(const ring r)
     409{
     410  assume(r != NULL);
     411#ifdef HAVE_SHIFTBBA
     412  return (r->isLPring!=0);
    413413#else
    414414  return FALSE;
    415415#endif
     416}
     417
     418static inline BOOLEAN rIsNCRing(const ring r)
     419{
     420  return rIsLPRing(r) || rIsPluralRing(r);
    416421}
    417422
Note: See TracChangeset for help on using the changeset viewer.