Changeset fc86355 in git


Ignore:
Timestamp:
Jun 8, 2010, 1:46:20 PM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
407ff05c12f210a6f1d860dac19e7850c61d38ea
Parents:
322ef48ea07af8360a4944010ce93a999df6ba18
Message:
check for overflow, trac 232

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

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r322ef4 rfc86355  
    10431043    {
    10441044      b=(poly)v->CopyD(POLY_CMD); // works also for VECTOR_CMD
    1045       #if 0
    10461045      if ((a!=NULL) && (b!=NULL)
    1047       && (pLDeg(a,&dummy,currRing)+pLDeg(b,&dummy,currRing)>=currRing->bitmask))
     1046      && (pTotalDegree(a)+pTotalDegree(b)>=currRing->bitmask))
    10481047      {
    10491048        pDelete(&a);
     
    10521051        return TRUE;
    10531052      }
    1054       #endif
    10551053      res->data = (char *)(pMult( a, b));
    10561054      pNormalize((poly)res->data);
     
    10591057    // u->next exists: copy v
    10601058    b=pCopy((poly)v->Data());
    1061     #if 0
    10621059    if ((a!=NULL) && (b!=NULL)
    1063     && (pLDeg(a,&dummy,currRing)+pLDeg(b,&dummy,currRing)>=currRing->bitmask))
     1060    && (pTotalDegree(a)+TotalDegree(b)>=currRing->bitmask))
    10641061    {
    10651062      pDelete(&a);
     
    10681065      return TRUE;
    10691066    }
    1070     #endif
    10711067    res->data = (char *)(pMult( a, b));
    10721068    pNormalize((poly)res->data);
     
    10761072  a=pCopy((poly)u->Data());
    10771073  b=(poly)v->CopyD(POLY_CMD); // works also for VECTOR_CMD
    1078   #if 0
    10791074  if ((a!=NULL) && (b!=NULL)
    1080   && (pLDeg(a,&dummy,currRing)+pLDeg(b,&dummy,currRing)>=currRing->bitmask))
     1075  && (pTotalDegree(a)+pTotalDegree(b)>=currRing->bitmask))
    10811076  {
    10821077    pDelete(&a);
     
    10851080    return TRUE;
    10861081  }
    1087   #endif
    10881082  res->data = (char *)(pMult( a, b));
    10891083  pNormalize((poly)res->data);
Note: See TracChangeset for help on using the changeset viewer.