Changeset 086a96 in git


Ignore:
Timestamp:
Mar 22, 2011, 1:44:55 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '4188d308699580d975efd0f6cca8dcb41c396f70')
Children:
b840b19c135b83494f50c51413afda4d052cb150
Parents:
e2c8bf66669bcdfa724bca9ace7818fccb60a0cc
Message:
simplify nIsPseudoUnit

git-svn-id: file:///usr/local/Singular/svn/trunk@14034 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/kbuckets.cc

    re2c8bf r086a96  
    11571157  if (r->parameter==NULL)
    11581158  {
    1159     if (r->cf->nSize(n)==1)
    1160       return TRUE;
    1161     else
    1162       return FALSE;
     1159    return (r->cf->nSize(n)==1);
    11631160  }
    11641161  //if (r->parameter!=NULL)
    1165   if (n_IsOne(n,r))
    1166   {
    1167     return TRUE;
    1168   }
    1169   if (n_IsMOne(n,r))
    1170   {
    1171     return TRUE;
    1172   }
    1173   return FALSE;
     1162  return ((n_IsOne(n,r)) || (n_IsMOne(n,r)));
    11741163}
    11751164
     
    12321221    }
    12331222  }
    1234   if (n_IsZero(coef,r)){
     1223  if (n_IsZero(coef,r))
     1224  {
    12351225    n_Delete(&coef,r);
    12361226    return;
    1237     }
     1227  }
    12381228  if (TEST_OPT_PROT)
    12391229    PrintS("S");
Note: See TracChangeset for help on using the changeset viewer.