Changeset ad07b8 in git


Ignore:
Timestamp:
Mar 10, 2006, 5:37:01 PM (18 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
f6c14e049cea6ca2239a192dae653203f79ef8f7
Parents:
9398476592ddffc14fac95c5d53e48636717c631
Message:
*hannes: inline initL


git-svn-id: file:///usr/local/Singular/svn/trunk@9015 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/kutil.cc

    r939847 rad07b8  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kutil.cc,v 1.19 2006-03-07 04:48:28 wienand Exp $ */
     4/* $Id: kutil.cc,v 1.20 2006-03-10 16:37:01 Singular Exp $ */
    55/*
    66* ABSTRACT: kernel: utils for kStd
     
    9797#endif
    9898
    99 
    10099static poly redMora (poly h,int maxIndex,kStrategy strat);
    101100static poly redBba (poly h,int maxIndex,kStrategy strat);
     
    417416}
    418417
    419 LSet initL ()
    420 {
    421   int i;
    422   LSet l = (LSet)omAlloc(setmaxL*sizeof(LObject));
    423   for (i=setmaxL-1;i>=0;i--)
    424   {
    425     l[i].tailRing = currRing;
    426     l[i].i_r1 = -1;
    427     l[i].i_r2 = -1;
    428     l[i].i_r = -1;
    429   }
    430   return l;
    431 }
     418//LSet initL ()
     419//{
     420//  int i;
     421//  LSet l = (LSet)omAlloc(setmaxL*sizeof(LObject));
     422//  return l;
     423//}
    432424
    433425static inline void enlargeL (LSet* L,int* length,const int incr)
     
    993985{
    994986  assume(i<=strat->sl);
     987  if (strat->interred_flag) return;
     988
    995989  int      l,j,compare;
    996990  LObject  Lp;
    997 
    998   if (strat->interred_flag) return;
     991  Lp.i_r = -1;
     992
    999993#ifdef KDEBUG
    1000994  Lp.ecart=0; Lp.length=0;
     
    12151209    if (atR >= 0)
    12161210    {
     1211      Lp.i_r1 = strat->S_2_R[i];
    12171212      Lp.i_r2 = atR;
    1218       Lp.i_r1 = strat->S_2_R[i];
     1213    }
     1214    else
     1215    {
     1216      Lp.i_r1 = -1;
     1217      Lp.i_r2 = -1;
    12191218    }
    12201219    strat->initEcartPair(&Lp,strat->S[i],p,strat->ecartS[i],ecart);
     
    12581257  int      l,j,compare;
    12591258  LObject  Lp;
     1259  Lp.i_r = -1;
    12601260
    12611261  Lp.lcm = pInit();
     
    12951295      Lp.i_r1 = strat->S_2_R[i];
    12961296      Lp.i_r2 = atR;
     1297    }
     1298    else
     1299    {
     1300      Lp.i_r1 = -1;
     1301      Lp.i_r2 = -1;
    12971302    }
    12981303    pNext(Lp.p) = strat->tail;
  • kernel/kutil.h

    r939847 rad07b8  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: kutil.h,v 1.13 2006-03-10 12:53:20 Singular Exp $ */
     6/* $Id: kutil.h,v 1.14 2006-03-10 16:34:17 Singular Exp $ */
    77/*
    88* ABSTRACT: kernel: utils for kStd
     
    7070  poly p;       // Lm(p) \in currRing Tail(p) \in tailRing
    7171  poly t_p;     // t_p \in tailRing: as monomials Lm(t_p) == Lm(p)
     72  poly max;     // p_GetMaxExpP(pNext(p))
    7273  ring tailRing;
    73   poly max;     // p_GetMaxExpP(pNext(p))
    7474  long FDeg;    // pFDeg(p)
    7575  int ecart,
     
    343343void deleteInS (int i,kStrategy strat);
    344344void cleanT (kStrategy strat);
    345 LSet initL ();
     345static inline LSet initL ()
     346{ return (LSet)omAlloc(setmaxL*sizeof(LObject)); };
    346347void deleteInL(LSet set, int *length, int j,kStrategy strat);
    347348void enterL (LSet *set,int *length, int *LSetmax, LObject p,int at);
Note: See TracChangeset for help on using the changeset viewer.