Changeset 9de60a in git


Ignore:
Timestamp:
Apr 4, 2017, 5:33:27 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
4a0e4ea61e709d6664315404b52dd64b5469d1dd6c688bd32235d71dd4d5ed60cc4bc0c2aec6969d
Parents:
ae88f61bc549fc10cc2a54fe1aaf8e8c68190b9e
Message:
chg: allocation in kutil.cc, p2
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kutil.cc

    rae88f6 r9de60a  
    85398539  if (Q!=NULL) i=((IDELEMS(Q)+(setmaxTinc-1))/setmaxTinc)*setmaxTinc;
    85408540  else i=setmaxT;
    8541   i=((i+IDELEMS(F)+IDELEMS(P)+15)/16)*16;
     8541  i=((i+IDELEMS(F)+IDELEMS(P)+setmax-1)/setmax)*setmax;
    85428542  strat->ecartS=initec(i);
    85438543  strat->sevS=initsevS(i);
     
    86848684  if (Q!=NULL) i=((IDELEMS(Q)+(setmaxTinc-1))/setmaxTinc)*setmaxTinc;
    86858685  else i=setmaxT;
    8686   i=((i+IDELEMS(F)+IDELEMS(P)+15)/16)*16;
     8686  i=((i+IDELEMS(F)+IDELEMS(P)+setmax-1)/setmax)*setmax;
    86878687  strat->sevS=initsevS(i);
    86888688  strat->sevSig=initsevS(i);
     
    93379337    strat->sevS = (unsigned long*) omRealloc0Size(strat->sevS,
    93389338                                    IDELEMS(strat->Shdl)*sizeof(unsigned long),
    9339                                     (IDELEMS(strat->Shdl)+setmaxTinc)
     9339                                    (IDELEMS(strat->Shdl)+setmax)
    93409340                                                  *sizeof(unsigned long));
    93419341    strat->sevSig = (unsigned long*) omRealloc0Size(strat->sevSig,
    93429342                                    IDELEMS(strat->Shdl)*sizeof(unsigned long),
    9343                                     (IDELEMS(strat->Shdl)+setmaxTinc)
     9343                                    (IDELEMS(strat->Shdl)+setmax)
    93449344                                                  *sizeof(unsigned long));
    93459345    strat->ecartS = (intset)omReallocSize(strat->ecartS,
    93469346                                          IDELEMS(strat->Shdl)*sizeof(int),
    9347                                           (IDELEMS(strat->Shdl)+setmaxTinc)
     9347                                          (IDELEMS(strat->Shdl)+setmax)
    93489348                                                  *sizeof(int));
    93499349    strat->S_2_R = (int*) omRealloc0Size(strat->S_2_R,
    93509350                                         IDELEMS(strat->Shdl)*sizeof(int),
    9351                                          (IDELEMS(strat->Shdl)+setmaxTinc)
     9351                                         (IDELEMS(strat->Shdl)+setmax)
    93529352                                                  *sizeof(int));
    93539353    if (strat->lenS!=NULL)
    93549354      strat->lenS=(int*)omRealloc0Size(strat->lenS,
    93559355                                       IDELEMS(strat->Shdl)*sizeof(int),
    9356                                        (IDELEMS(strat->Shdl)+setmaxTinc)
     9356                                       (IDELEMS(strat->Shdl)+setmax)
    93579357                                                 *sizeof(int));
    93589358    if (strat->lenSw!=NULL)
    93599359      strat->lenSw=(wlen_type*)omRealloc0Size(strat->lenSw,
    93609360                                       IDELEMS(strat->Shdl)*sizeof(wlen_type),
    9361                                        (IDELEMS(strat->Shdl)+setmaxTinc)
     9361                                       (IDELEMS(strat->Shdl)+setmax)
    93629362                                                 *sizeof(wlen_type));
    93639363    if (strat->fromQ!=NULL)
     
    93659365      strat->fromQ = (intset)omReallocSize(strat->fromQ,
    93669366                                    IDELEMS(strat->Shdl)*sizeof(int),
    9367                                     (IDELEMS(strat->Shdl)+setmaxTinc)*sizeof(int));
    9368     }
    9369     pEnlargeSet(&strat->S,IDELEMS(strat->Shdl),setmaxTinc);
    9370     pEnlargeSet(&strat->sig,IDELEMS(strat->Shdl),setmaxTinc);
    9371     IDELEMS(strat->Shdl)+=setmaxTinc;
     9367                                    (IDELEMS(strat->Shdl)+setmax)*sizeof(int));
     9368    }
     9369    pEnlargeSet(&strat->S,IDELEMS(strat->Shdl),setmax);
     9370    pEnlargeSet(&strat->sig,IDELEMS(strat->Shdl),setmax);
     9371    IDELEMS(strat->Shdl)+=setmax;
    93729372    strat->Shdl->m=strat->S;
    93739373  }
     
    96739673  if (strat->syzl == strat->syzmax-1)
    96749674  {
    9675     pEnlargeSet(&strat->syz,strat->syzmax,setmaxTinc);
     9675    pEnlargeSet(&strat->syz,strat->syzmax,setmax);
    96769676    strat->sevSyz = (unsigned long*) omRealloc0Size(strat->sevSyz,
    96779677                                    (strat->syzmax)*sizeof(unsigned long),
    9678                                     ((strat->syzmax)+setmaxTinc)
     9678                                    ((strat->syzmax)+setmax)
    96799679                                                  *sizeof(unsigned long));
    9680     strat->syzmax += setmaxTinc;
     9680    strat->syzmax += setmax;
    96819681  }
    96829682  if (atT < strat->syzl)
Note: See TracChangeset for help on using the changeset viewer.