Changeset fc86355 in git
- Timestamp:
- Jun 8, 2010, 1:46:20 PM (13 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 407ff05c12f210a6f1d860dac19e7850c61d38ea
- Parents:
- 322ef48ea07af8360a4944010ce93a999df6ba18
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r322ef4 rfc86355 1043 1043 { 1044 1044 b=(poly)v->CopyD(POLY_CMD); // works also for VECTOR_CMD 1045 #if 01046 1045 if ((a!=NULL) && (b!=NULL) 1047 && (p LDeg(a,&dummy,currRing)+pLDeg(b,&dummy,currRing)>=currRing->bitmask))1046 && (pTotalDegree(a)+pTotalDegree(b)>=currRing->bitmask)) 1048 1047 { 1049 1048 pDelete(&a); … … 1052 1051 return TRUE; 1053 1052 } 1054 #endif1055 1053 res->data = (char *)(pMult( a, b)); 1056 1054 pNormalize((poly)res->data); … … 1059 1057 // u->next exists: copy v 1060 1058 b=pCopy((poly)v->Data()); 1061 #if 01062 1059 if ((a!=NULL) && (b!=NULL) 1063 && (p LDeg(a,&dummy,currRing)+pLDeg(b,&dummy,currRing)>=currRing->bitmask))1060 && (pTotalDegree(a)+TotalDegree(b)>=currRing->bitmask)) 1064 1061 { 1065 1062 pDelete(&a); … … 1068 1065 return TRUE; 1069 1066 } 1070 #endif1071 1067 res->data = (char *)(pMult( a, b)); 1072 1068 pNormalize((poly)res->data); … … 1076 1072 a=pCopy((poly)u->Data()); 1077 1073 b=(poly)v->CopyD(POLY_CMD); // works also for VECTOR_CMD 1078 #if 01079 1074 if ((a!=NULL) && (b!=NULL) 1080 && (p LDeg(a,&dummy,currRing)+pLDeg(b,&dummy,currRing)>=currRing->bitmask))1075 && (pTotalDegree(a)+pTotalDegree(b)>=currRing->bitmask)) 1081 1076 { 1082 1077 pDelete(&a); … … 1085 1080 return TRUE; 1086 1081 } 1087 #endif1088 1082 res->data = (char *)(pMult( a, b)); 1089 1083 pNormalize((poly)res->data);
Note: See TracChangeset
for help on using the changeset viewer.