Changeset f4d581 in git for kernel/GBEngine/kutil.cc


Ignore:
Timestamp:
Apr 4, 2017, 2:40:54 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
e3f7c1a69f73a3bc29e74ade0d078686074677e5
Parents:
c72b3a88cfcb83e29a3daacda3672978a6146759
Message:
chg: allocation in kutil.cc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kutil.cc

    rc72b3a rf4d581  
    32083208  if (j>strat->Lmax)
    32093209  {
    3210     j=((j+setmaxLinc-1)/setmaxLinc)*setmaxLinc;
    3211     strat->L = (LSet)omReallocSize(strat->L,strat->Lmax*sizeof(LObject),
    3212                                  j*sizeof(LObject));
    3213     strat->Lmax=j;
     3210    j=((j+setmaxLinc-1)/setmaxLinc)*setmaxLinc-strat->Lmax;
     3211    enlargeL(&(strat->L),&(strat->Lmax),j);
    32143212  }
    32153213  j = strat->Ll;
     
    32313229  if (j>strat->Lmax)
    32323230  {
    3233     j=((j+setmaxLinc-1)/setmaxLinc)*setmaxLinc;
    3234     strat->L = (LSet)omReallocSize(strat->L,strat->Lmax*sizeof(LObject),
    3235                                  j*sizeof(LObject));
    3236     strat->Lmax=j;
     3231    j=((j+setmaxLinc-1)/setmaxLinc)*setmaxLinc-strat->Lmax;
     3232    enlargeL(&(strat->L),&(strat->Lmax),j);
    32373233  }
    32383234  j = strat->Ll;
     
    1010810104  strat->Lmax = ((IDELEMS(F)+setmaxLinc-1)/setmaxLinc)*setmaxLinc;
    1010910105  strat->Ll = -1;
    10110   strat->L = initL(((IDELEMS(F)+setmaxLinc-1)/setmaxLinc)*setmaxLinc);
     10106  strat->L = initL(strat->Lmax);
    1011110107  /*- set B -*/
    1011210108  strat->Bmax = setmaxL;
     
    1030610302  strat->Lmax = ((IDELEMS(F)+setmaxLinc-1)/setmaxLinc)*setmaxLinc;
    1030710303  strat->Ll = -1;
    10308   strat->L = initL(((IDELEMS(F)+setmaxLinc-1)/setmaxLinc)*setmaxLinc);
     10304  strat->L = initL(strat->Lmax);
    1030910305  /*- set B -*/
    1031010306  strat->Bmax = setmaxL;
Note: See TracChangeset for help on using the changeset viewer.